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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x50b0b0]
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
nop word [eax + eax]
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.004c20c0
mov dword [esi + 8], 0xffffffff
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x20], ebx
jne 0x4138f5
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x34]
call fcn.00492050
add esp, 8
test eax, eax
jne 0x413d67
mov ebx, dword [esp + 0x10]
mov ebp, ebx
mov dword [esp + 0x24], ebx
mov esi, ebp
push ebp
call fcn.00492f10
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x413d09
xorps xmm0, xmm0
xor esi, esi
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x64], esi
movups xmmword [esp + 0x54], xmm0
nop
lea eax, [esp + 0x44]
push eax
push 0
push ebp
call dword [0x50a354]
test eax, eax
jne 0x413978
call dword [0x50a384]
cmp esi, dword [0x50a608]
jge 0x413989
cmp eax, 5
je 0x413965
cmp eax, 0x20
je 0x413965
cmp eax, 0x21
je 0x413965
cmp eax, 0x37
je 0x413965
cmp eax, 0x40
je 0x413965
cmp eax, 0x79
je 0x413965
cmp eax, 0x4cf
jne 0x413989
inc esi
mov eax, esi
imul eax, dword [0x50a60c]
push eax
call dword [0x50a4e0]
jmp 0x413920
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x413989
test al, 0x10
jne 0x413b1e
cmp dword [esp + 0x18], 0
mov ebp, 0xc0000000
mov eax, SysReAllocString
cmove ebp, eax
cmp dword [esp + 0x28], 0
je 0x4139a9
mov ebx, 1
jmp 0x4139b3
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
push 0
push edi
push ebx
push 0
push 3
push ebp
push dword [esp + 0x34]
call dword [0x50a288]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413a2f
call dword [0x50a384]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x50a608]
jge 0x413a2b
cmp eax, 5
je 0x413a16
cmp eax, 0x20
je 0x413a16
cmp eax, 0x21
je 0x413a16
cmp eax, 0x37
je 0x413a16
cmp eax, 0x40
je 0x413a16
cmp eax, 0x79
je 0x413a16
cmp eax, 0x4cf
jne 0x413a2b
inc ecx
mov dword [esp + 0x14], ecx
imul ecx, dword [0x50a60c]
push ecx
call dword [0x50a4e0]
jmp 0x4139c5
mov ebx, eax
jmp 0x413a37
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
test ecx, ecx
je 0x413a62
lea eax, [ecx + 1]
imul eax, dword [0x50a60c]
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.0041e160
add esp, 0x10
cmp esi, 0xffffffff
jne 0x413be2
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.004923e0
push dword [esp + 0x30]
call fcn.00418530
mov ebx, dword [esp + 0x28]
add esp, 0x18
test ebx, ebx
je 0x413af1
cmp dword [section..data], 0
je 0x413ae7
mov eax, dword [0x50cf50]
test eax, eax
je 0x413ab8
push eax
call dword [0x50a054]
add esp, 4
push ebx
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push ebx
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x413af1
push eax
call dword [0x50a05c]
jmp 0x413aee
push ebx
call dword [0x50a028]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x413bb1
cmp dword [esp + 0x28], 0
jne 0x413bb1
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
and ecx, 0xfffffff9
or ecx, 1
mov dword [esp + 0x7c], ecx
jmp 0x413870
push ebp
call fcn.00418530
add esp, 4
test ebx, ebx
je 0x413b99
cmp dword [section..data], 0
je 0x413b8f
mov eax, dword [0x50cf50]
test eax, eax
je 0x413b47
push eax
call dword [0x50a054]
add esp, 4
push ebx
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push ebx
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x413b99
push eax
call dword [0x50a05c]
add esp, 4
mov eax, 0x20e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf6e8
add esp, 0x5c
ret
push ebx
call dword [0x50a028]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x20e
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf6e8
add esp, 0x5c
ret
push 0x4f408c
push 0x9495
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.0041e160
add esp, 0x10
mov eax, 0xe
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf6e8
add esp, 0x5c
ret
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x413bf6
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
inc eax
mov dword [ecx], eax
push dword [esp + 0x1c]
call fcn.00418530
mov edi, dword [esp + 0x14]
add esp, 4
test edi, edi
je 0x413c5f
cmp dword [section..data], 0
je 0x413c55
mov eax, dword [0x50cf50]
test eax, eax
je 0x413c26
push eax
call dword [0x50a054]
add esp, 4
push edi
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push edi
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x413c5f
push eax
call dword [0x50a05c]
jmp 0x413c5c
push edi
call dword [0x50a028]
add esp, 4
cmp dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebx], 0x4ee2b8
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
je 0x413c7e
or byte [ebx + 0x10], 2
mov ebp, dword [esp + 0x20]
push str.psow
push ebp
call fcn.00418b30
add esp, 8
test eax, eax
je 0x413cac
push 1
push 1
push eax
call fcn.00435f10
xor ecx, ecx
add esp, 0xc
test al, al
setne cl
test ecx, ecx
je 0x413cb0
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 [0x50a0b0]
mov dword [ebx + 0x40], eax
mov eax, dword [0x50a0b4]
pop esi
mov dword [ebx + 0x44], eax
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004bf6e8
add esp, 0x5c
ret
test esi, esi
je 0x413d62
cmp dword [section..data], 0
je 0x413d58
mov eax, dword [0x50cf50]
test eax, eax
je 0x413d29
push eax
call dword [0x50a054]
add esp, 4
push esi
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push esi
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x413d62
push eax
call dword [0x50a05c]
jmp 0x413d5f
push esi
call dword [0x50a028]
add esp, 4
mov eax, 0xc0a
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bf6e8
add esp, 0x5c
ret