Function at 0x47b1f1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
push edi
push 0x94
mov ebx, eax
mov eax, 1
push 0
push esi
mov edi, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
call fcn.00418060
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0x28]
add esp, 0xc
test eax, eax
mov dword [esi + 0xc], eax
je 0x47ab2b
cmp dword [eax + 8], 0
je 0x47aa28
cmp ebx, 2
jge 0x47aa28
push 0x54613c
push 1
push 0x2b99
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.004370c0
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x47aa37
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov eax, dword [ebp + 0x24]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
push 0
push eax
mov eax, dword [edi + 0x14]
push ecx
push edx
push eax
call fcn.00472df0
mov ecx, eax
add esp, 0x14
mov dword [esi], eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x47aa61
sub ecx, edi
add ecx, 0xfffffffc
js 0x47aace
lea edi, [eax + ecx]
mov ecx, 0x546178
mov eax, edi
jmp 0x47aa80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47aaa0
test dl, dl
je 0x47aa9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47aaa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x47aa80
xor eax, eax
jmp 0x47aaa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47aace
cmp dword [esi + 0x20], 5
mov edx, str..pvt
je 0x47aab9
mov edx, 0x546188
mov ecx, edi
jmp 0x47aac0
mov al, byte [edx]
mov byte [ecx], al
add edx, 1
add ecx, 1
test al, al
jne 0x47aac0
mov eax, dword [0x56ebd0]
mov edx, dword [0x53f4e4]
lea ecx, [eax*8]
sub ecx, eax
test dword [edx + ecx*4 + 0xc], 0x200
lea eax, [edx + ecx*4]
je 0x47ab17
mov eax, dword [eax]
mov ecx, dword [str._unknown_program_]
push eax
push ecx
push str._s_MONITOR:_s:
call fcn.00442db0
mov edx, dword [esi]
mov eax, dword [ebp + 4]
push edx
push eax
push str.Writing_Shape_for_Assembly___s__to_OL_v6_file___s__n
call fcn.00442cd0
add esp, 0x18
call fcn.0047a8d0
test eax, eax
je 0x47ab36
mov ecx, dword [esi]
push ecx
call fcn.00418550
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x128]
test eax, eax
mov ecx, 0xfffffffd
je 0x47ab59
mov eax, dword [eax + 0x18]
test eax, eax
je 0x47ab59
nop
mov dword [eax + 0x30], ecx
mov eax, dword [eax]
test eax, eax
jne 0x47ab50
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov edi, dword [ecx + 4]
test edi, edi
mov ebx, 0xfffffffe
je 0x47aba5
jmp 0x47ab70
mov edx, dword [edi + 0xc]
test edx, edx
je 0x47ab9e
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x47ab98
mov edi, edi
mov eax, dword [ecx + 8]
test eax, eax
je 0x47ab92
cmp eax, dword [0x53f830]
je 0x47ab92
mov dword [eax + 0x30], ebx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x47ab80
mov edx, dword [edx]
test edx, edx
jne 0x47ab77
mov edi, dword [edi + 4]
test edi, edi
jne 0x47ab70
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x20], eax
je 0x47b251
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esp + 0x40]
add eax, 0x18
push eax
call fcn.00447cb0
mov esi, dword [esi + 0xc]
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x47b23e
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
or dword [esp + 0x40], 2
test eax, eax
mov dword [esp + 0x10], eax
je 0x47b22c
jmp 0x47ac00
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0xc]
test edi, edi
je 0x47accf
mov esi, dword [esp + 0x3c]
call fcn.004370c0
lea eax, [edi + 0x10]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00447cb0
mov eax, dword [edi + 8]
add esp, 8
test eax, eax
je 0x47ac3c
cmp dword [eax + 0x30], 0xfffffffd
jne 0x47ac3c
mov dword [eax + 0x30], 0xfffffffe
mov ebx, dword [edi + 0x18]
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x47acc5
lea ecx, [ecx]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + ebp*4]
add edx, 0x14
push edx
lea eax, [esi + 0x18]
push eax
call fcn.00447cb0
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebp*4]
mov dword [ecx], 0xffffffff
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ebp*4]
add esp, 8
cmp dword [eax + 0xc], 0
je 0x47acbe
mov ecx, edx
mov edx, dword [ecx + ebp*4]
mov ebx, dword [edx + 0xc]
cmp byte [ebx + 0x20], 3
jne 0x47acab
mov esi, dword [ebx + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47acab
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47ac95
or dword [esp + 0x40], 8
mov esi, dword [esp + 0x3c]
mov dword [ebx], 0xffffffff
mov ebx, dword [esp + 0x14]
add ebp, 1
cmp ebp, ebx
jl 0x47ac50
mov edi, dword [edi]
test edi, edi
jne 0x47ac13
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x10]
test esi, esi
je 0x47ad87
mov edi, edi
call fcn.004370c0
mov ebx, dword [esi + 0xc]
or dword [esp + 0x40], 4
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x47ad7d
jmp 0x47ad00
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x3c]
add ecx, 0x14
push ecx
add eax, 0x18
push eax
call fcn.00447cb0
mov edx, dword [esi + 8]
mov eax, dword [edx + edi*4]
mov dword [eax], 0xffffffff
mov ecx, dword [esi + 8]
mov edx, dword [ecx + edi*4]
add esp, 8
cmp dword [edx + 0xc], 0
je 0x47ad76
mov eax, ecx
mov ecx, dword [eax + edi*4]
mov ebx, dword [ecx + 0xc]
cmp byte [ebx + 0x20], 3
jne 0x47ad67
mov ebp, dword [ebx + 0x18]
xor edx, edx
cmp dword [ebp], edx
jle 0x47ad67
lea ebx, [ebx]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [ebp]
jl 0x47ad50
or dword [esp + 0x40], 8
mov dword [ebx], 0xffffffff
mov ebx, dword [esp + 0x14]
add edi, 1
cmp edi, ebx
jl 0x47ad00
mov esi, dword [esi]
test esi, esi
jne 0x47ace0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
test eax, eax
mov dword [esp + 0x14], eax
je 0x47b13a
lea ebx, [ebx]
call fcn.004370c0
mov esi, dword [esp + 0x14]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esp + 0x40]
add eax, 0x18
push eax
call fcn.00447cb0
mov eax, dword [esi + 0xc]
add esp, 8
test eax, eax
je 0x47ade9
cmp dword [esp + 0x24], 0
je 0x47addc
mov dword [eax + 0x30], 0xffffffff
mov dword [esp + 0x24], 0
jmp 0x47ade9
cmp dword [eax + 0x30], 0xfffffffd
jne 0x47ade9
mov dword [eax + 0x30], 0xfffffffe
mov esi, dword [esi + 0x10]
test esi, esi
je 0x47b127
mov ebp, dword [esp + 0x14]
or dword [esp + 0x40], 8
mov bl, byte [esi + 0x38]
mov dword [esi], 0xffffffff
cmp byte [ebp + 0x28], 0
mov dword [esp + 0x18], 0
je 0x47ae23
cmp bl, 3
je 0x47ae23
cmp bl, 6
je 0x47ae23
cmp bl, 7
jne 0x47ae2c
push ebp
call fcn.0042fa90
add esp, 4
cmp bl, 4
jne 0x47ae42
mov esi, dword [esi + 0x34]
not esi
and esi, 1
mov dword [esp + 0x18], esi
jmp 0x47af1e
cmp bl, 3
jne 0x47ae7d
mov ecx, dword [esi + 0x30]
mov edi, dword [ecx]
cmp byte [edi + 0x20], bl
jne 0x47af18
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47af18
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47ae62
jmp 0x47af18
cmp bl, 6
jne 0x47aeb8
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
cmp byte [edi + 0x20], 3
jne 0x47af18
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47af18
lea ebx, [ebx]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47aea0
jmp 0x47af18
cmp bl, 7
jne 0x47af1e
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
cmp byte [ebx + 0x20], 3
jne 0x47aee7
mov edi, dword [ebx + 0x18]
xor edx, edx
cmp dword [edi], edx
jle 0x47aee7
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [edi]
jl 0x47aed1
mov dword [ebx], 0xffffffff
mov edx, dword [esi + 0x30]
mov edi, dword [edx + 4]
cmp byte [edi + 0x20], 3
jne 0x47af18
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47af18
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47af02
mov dword [edi], 0xffffffff
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x47b014
mov al, byte [edi + 0x38]
cmp al, 4
jne 0x47af41
mov edi, dword [edi + 0x34]
not edi
and edi, 1
mov dword [esp + 0x18], edi
jmp 0x47b014
cmp al, 3
jne 0x47af7b
mov edx, dword [edi + 0x30]
mov edi, dword [edx]
cmp byte [edi + 0x20], al
jne 0x47b00e
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47b00e
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47af60
jmp 0x47b00e
cmp al, 6
jne 0x47afaf
mov edx, dword [edi + 0x30]
mov edi, dword [edx]
cmp byte [edi + 0x20], 3
jne 0x47b00e
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47b00e
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47af97
jmp 0x47b00e
cmp al, 7
jne 0x47b014
mov edx, dword [edi + 0x30]
mov ebx, dword [edx]
cmp byte [ebx + 0x20], 3
jne 0x47afdd
mov esi, dword [ebx + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47afdd
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47afc7
mov dword [ebx], 0xffffffff
mov edx, dword [edi + 0x30]
mov edi, dword [edx + 4]
cmp byte [edi + 0x20], 3
jne 0x47b00e
mov esi, dword [edi + 0x18]
xor edx, edx
cmp dword [esi], edx
jle 0x47b00e
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [esi]
jl 0x47aff8
mov dword [edi], 0xffffffff
cmp byte [ebp + 0x28], 0
jne 0x47b127
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x47b127
lea ecx, [ecx]
call fcn.004370c0
cmp dword [esp + 0x18], 0
je 0x47b045
push ebx
call fcn.0044bc40
add esp, 4
mov ebp, dword [ebx + 0xc]
test ebp, ebp
je 0x47b11c
mov eax, dword [ebp + 8]
test eax, eax
je 0x47b0ad
add eax, 0x14
push eax
mov eax, dword [esp + 0x40]
add eax, 0x18
push eax
call fcn.00447cb0
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp + 8]
add esp, 8
cmp dword [ecx + 0xc], 0
je 0x47b0ad
mov edx, ecx
mov esi, dword [edx + 0xc]
cmp byte [esi + 0x20], 3
jne 0x47b0a7
mov edi, dword [esi + 0x18]
xor edx, edx
cmp dword [edi], edx
jle 0x47b0a7
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [edi]
jl 0x47b091
mov dword [esi], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47b0df
cmp byte [esi + 0x20], 3
jne 0x47b0d9
mov edi, dword [esi + 0x18]
xor edx, edx
cmp dword [edi], edx
jle 0x47b0d9
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [edi]
jl 0x47b0c3
mov dword [esi], 0xffffffff
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47b111
cmp byte [esi + 0x20], 3
jne 0x47b10b
mov edi, dword [esi + 0x18]
xor edx, edx
cmp dword [edi], edx
jle 0x47b10b
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0047a980
add edx, 1
add esp, 4
cmp edx, dword [edi]
jl 0x47b0f5
mov dword [esi], 0xffffffff
mov ebp, dword [ebp]
test ebp, ebp
jne 0x47b050
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x47b030
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x47ada0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x47b168
call fcn.004370c0
mov edi, dword [esp + 0x3c]
mov edi, edi
lea eax, [esi + 0x20]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.00447cb0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x47b150
jmp 0x47b16c
mov edi, dword [esp + 0x3c]
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x47b18e
call fcn.004370c0
lea ecx, [esi + 0x38]
push ecx
lea eax, [edi + 0x18]
push eax
call fcn.00447cb0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x47b178
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x47b1b6
call fcn.004370c0
lea ebx, [ebx]
lea edx, [esi + 0x50]
push edx
lea eax, [edi + 0x18]
push eax
call fcn.00447cb0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x47b1a0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x47b21a
call fcn.004370c0
mov ebx, dword [esp + 0x3c]
mov eax, dword [esi + 0x30]
and eax, 0xfff
push eax
lea ecx, [esp + 0x2c]
push 0x5461c0
push ecx
call fcn.00500a32
lea edx, [esp + 0x34]
push 1
push edx
lea edi, [esi + 0xc]
call fcn.00447220
add esp, 0x14
push eax
push 1
push 0x5461c4
call fcn.00447270
add esp, 8
push eax
push edi
call fcn.00447c30
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.00447cb0
mov esi, dword [esi]
add esp, 0x14
test esi, esi
jne 0x47b1c6
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x47ac00
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x47abe0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x47abb6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x78], eax
xor eax, eax
pop ebx
add esp, 0x28
ret