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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
and dword [esi + 0x38], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.00410bb3
lea ecx, [ebp - 0x20]
call fcn.00410bb3
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
test edi, edi
jne 0x405766
push dword [ebp + 0xc]
call fcn.004055c6
mov bl, 1
push dword [ebp - 0x20]
call fcn.00450571
push dword [ebp - 0x14]
call fcn.00450571
pop ecx
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc
xor edx, edx
mov eax, ebx
call fcn.00410d83
cmp word [eax], 0x5b
jne 0x40598d
lea edx, [edi - 1]
mov eax, ebx
call fcn.00410d83
cmp word [eax], 0x5d
jne 0x40598d
add edi, 0xfffffffe
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 8], edi
push ebx
lea edi, [ebp - 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.004055f0
test al, al
je 0x40598d
push 0x46c328
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x4057d4
mov eax, dword [ebp + 8]
or dword [eax + 4], 1
add eax, 8
jmp 0x40594a
push 0x46c334
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x4057f5
mov eax, dword [ebp + 8]
or dword [eax + 4], 8
add eax, 0x14
jmp 0x40594a
push 0x46c344
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x40582f
mov eax, dword [ebp + 8]
or dword [eax + 4], 0x10
lea esi, [eax + 0x4c]
call fcn.004083d8
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.0040842b
test eax, eax
je 0x40596a
xor bl, bl
jmp 0x40574b
push 0x46c35c
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x405859
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x20
call fcn.0045254d
pop ecx
mov dword [esi + 0x2c], eax
jmp 0x40596a
push 0x46c364
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x405883
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x40
call fcn.0045254d
pop ecx
mov dword [esi + 0x3c], eax
jmp 0x40596a
push 0x46c368
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x4058b0
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x80
call fcn.0045254d
pop ecx
mov dword [esi + 0x40], eax
jmp 0x40596a
push 0x46c36c
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x4058dd
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x100
call fcn.0045254d
pop ecx
mov dword [esi + 0x44], eax
jmp 0x40596a
push 0x46c370
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x405907
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 0x200
call fcn.0045254d
pop ecx
mov dword [esi + 0x48], eax
jmp 0x40596a
push 0x46c374
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x40592e
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
or dword [esi + 4], 2
call fcn.0045254d
pop ecx
mov dword [esi + 0x30], eax
jmp 0x40596a
push 0x46c388
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x405954
mov eax, dword [ebp + 8]
or dword [eax + 4], 4
add eax, 0x20
lea ebx, [ebp - 0x20]
call fcn.00410d94
jmp 0x40596a
push 0x46bf80
lea esi, [ebp - 0x14]
call fcn.00410f30
test al, al
pop ecx
je 0x405828
push dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
lea edi, [ebp - 4]
lea eax, [ebp - 0x14]
call fcn.004055f0
test al, al
jne 0x4057b3
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x4059a2
lea eax, [esi + 0x14]
mov dword [esi + 4], 8
call fcn.00410d94
test byte [esi + 4], 8
je 0x4059e5
mov eax, dword [esi + 0x18]
and dword [esi + 0x80], 0
test eax, eax
mov dword [esi + 0x7c], eax
lea edi, [eax - 1]
je 0x4059e5
test edi, edi
jl 0x4059e5
lea ebx, [esi + 0x14]
mov edx, edi
mov eax, ebx
call fcn.00410d83
movzx eax, word [eax]
push eax
call fcn.004525a7
dec edi
test eax, eax
pop ecx
je 0x4059e5
inc dword [esi + 0x80]
test edi, edi
jge 0x4059c3
mov edi, dword [0x467574]
and dword [esi + 0x78], 0
push esi
push 0x404e38
push dword [ebp + 0xc]
call edi
cmp dword [esi + 0x38], 0
jne 0x405a27
test byte [esi + 4], 8
je 0x405a27
and dword [esi + 0x78], 0
lea ebx, [esi + 0x14]
lea eax, [esi + 0x20]
mov dword [esi + 4], 4
call fcn.00410d94
push esi
push 0x404e38
push dword [ebp + 0xc]
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x405828
push eax
jmp 0x405744