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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x50a0b0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x78]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
jmp 0x4138b0
mov ebp, eax
mov dword [esp + 0x38], 0
mov eax, ecx
mov dword [esp + 0x24], ebp
and eax, 0x10
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], eax
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x10], ebx
and eax, 8
mov edi, ecx
mov dword [esp + 0x34], eax
and edi, 4
mov eax, ecx
and eax, 1
mov dword [esp + 0x40], eax
mov eax, ecx
push 0x48
and eax, 2
push ebx
push esi
mov dword [esp + 0x24], eax
call fcn.004c2200
mov dword [esi + 8], 0xffffffff
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x20], ebx
jne 0x413935
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x34]
call fcn.00492320
add esp, 8
test eax, eax
jne 0x413dc2
mov ebx, dword [esp + 0x10]
mov ebp, ebx
mov dword [esp + 0x24], ebx
mov esi, ebp
push ebp
call fcn.00493200
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x413d64
xor esi, esi
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
push 0
push ebp
call dword [0x509354]
test eax, eax
jne 0x4139cc
call dword [0x509384]
cmp esi, dword [0x509608]
jge 0x4139dd
cmp eax, 5
je 0x4139b9
cmp eax, 0x20
je 0x4139b9
cmp eax, 0x21
je 0x4139b9
cmp eax, 0x37
je 0x4139b9
cmp eax, 0x40
je 0x4139b9
cmp eax, 0x79
je 0x4139b9
cmp eax, 0x4cf
jne 0x4139dd
inc esi
mov eax, esi
imul eax, dword [0x50960c]
push eax
call dword [0x5094e0]
jmp 0x413974
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x4139dd
test al, 0x10
jne 0x413b79
cmp dword [esp + 0x18], 0
mov ebp, 0xc0000000
mov eax, SysReAllocString
cmove ebp, eax
cmp dword [esp + 0x28], 0
je 0x4139fd
mov ebx, 1
jmp 0x413a07
xor ebx, ebx
test edi, edi
setne bl
add ebx, 3
cmp dword [esp + 0x34], 0
mov edi, 0x4000102
mov eax, 0x80
cmove edi, eax
lea esp, [esp]
push 0
push edi
push ebx
push 0
push 3
push ebp
push dword [esp + 0x34]
call dword [0x509288]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413a8a
call dword [0x509384]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x509608]
jge 0x413a86
cmp eax, 5
je 0x413a71
cmp eax, 0x20
je 0x413a71
cmp eax, 0x21
je 0x413a71
cmp eax, 0x37
je 0x413a71
cmp eax, 0x40
je 0x413a71
cmp eax, 0x79
je 0x413a71
cmp eax, 0x4cf
jne 0x413a86
inc ecx
mov dword [esp + 0x14], ecx
imul ecx, dword [0x50960c]
push ecx
call dword [0x5094e0]
jmp 0x413a20
mov ebx, eax
jmp 0x413a92
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
test ecx, ecx
je 0x413abd
lea eax, [ecx + 1]
imul eax, dword [0x50960c]
push 0x9485
imul eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push str.delayed__dms_for_lock_sharing_conflict_at_line__d
push 0x1b
call fcn.0041e040
add esp, 0x10
cmp esi, 0xffffffff
jne 0x413c3d
mov esi, dword [esp + 0x2c]
push 0x948c
push dword [esp + 0x28]
push str.winOpen
push ebx
push 0xe
mov dword [esi + 0x14], ebx
call fcn.004926b0
push dword [esp + 0x30]
call fcn.00418550
mov ebx, dword [esp + 0x28]
add esp, 0x18
test ebx, ebx
je 0x413b4c
cmp dword [section..data], 0
je 0x413b42
mov eax, dword [0x50bf70]
test eax, eax
je 0x413b13
push eax
call dword [0x509054]
add esp, 4
push ebx
call dword [0x509030]
sub dword [0x50bdf0], eax
dec dword [0x50be14]
push ebx
call dword [0x509028]
mov eax, dword [0x50bf70]
add esp, 8
test eax, eax
je 0x413b4c
push eax
call dword [0x50905c]
jmp 0x413b49
push ebx
call dword [0x509028]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x413c0c
cmp dword [esp + 0x28], 0
jne 0x413c0c
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
and ecx, 0xfffffff9
or ecx, 1
mov dword [esp + 0x7c], ecx
jmp 0x4138b0
push ebp
call fcn.00418550
add esp, 4
test ebx, ebx
je 0x413bf4
cmp dword [section..data], 0
je 0x413bea
mov eax, dword [0x50bf70]
test eax, eax
je 0x413ba2
push eax
call dword [0x509054]
add esp, 4
push ebx
call dword [0x509030]
sub dword [0x50bdf0], eax
dec dword [0x50be14]
push ebx
call dword [0x509028]
mov eax, dword [0x50bf70]
add esp, 8
test eax, eax
je 0x413bf4
push eax
call dword [0x50905c]
add esp, 4
mov eax, 0x20e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret
push ebx
call dword [0x509028]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x20e
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret
push 0x4f308c
push 0x9495
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.0041e040
add esp, 0x10
mov eax, 0xe
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x413c51
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
inc eax
mov dword [ecx], eax
push dword [esp + 0x1c]
call fcn.00418550
mov edi, dword [esp + 0x14]
add esp, 4
test edi, edi
je 0x413cba
cmp dword [section..data], 0
je 0x413cb0
mov eax, dword [0x50bf70]
test eax, eax
je 0x413c81
push eax
call dword [0x509054]
add esp, 4
push edi
call dword [0x509030]
sub dword [0x50bdf0], eax
dec dword [0x50be14]
push edi
call dword [0x509028]
mov eax, dword [0x50bf70]
add esp, 8
test eax, eax
je 0x413cba
push eax
call dword [0x50905c]
jmp 0x413cb7
push edi
call dword [0x509028]
add esp, 4
cmp dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebx], 0x4ed2b8
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
je 0x413cd9
or byte [ebx + 0x10], 2
mov ebp, dword [esp + 0x20]
push str.psow
push ebp
call fcn.00418b60
add esp, 8
test eax, eax
je 0x413d07
push 1
push 1
push eax
call fcn.00435d60
xor ecx, ecx
add esp, 0xc
test al, al
setne cl
test ecx, ecx
je 0x413d0b
or byte [ebx + 0x10], 0x10
mov dword [ebx + 0x1c], ebp
pop edi
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov eax, dword [0x5090b0]
mov dword [ebx + 0x40], eax
mov eax, dword [0x5090b4]
pop esi
mov dword [ebx + 0x44], eax
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret
test esi, esi
je 0x413dbd
cmp dword [section..data], 0
je 0x413db3
mov eax, dword [0x50bf70]
test eax, eax
je 0x413d84
push eax
call dword [0x509054]
add esp, 4
push esi
call dword [0x509030]
sub dword [0x50bdf0], eax
dec dword [0x50be14]
push esi
call dword [0x509028]
mov eax, dword [0x50bf70]
add esp, 8
test eax, eax
je 0x413dbd
push eax
call dword [0x50905c]
jmp 0x413dba
push esi
call dword [0x509028]
add esp, 4
mov eax, 0xc0a
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret