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

Disassembly:
push 0xffffffffffffffff
push 0x4d830e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb4]
xor ebx, ebx
cmp eax, ebx
je 0x413ee5
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [esp + 0xb8]
push 1
push 1
push ecx
push eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0xbc], ebx
call fcn.00413840
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.0040f540
mov dword [esp + 0x1c], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
mov esi, dword [esp + 0x4c]
jne 0x413aff
mov dword [esp + 0x40], ebx
jmp 0x413b1a
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x40], eax
xor edi, edi
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x38], edi
jle 0x413e85
xor ebp, ebp
mov dword [esp + 0x54], ebp
jmp 0x413b3a
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov byte [esp + 0xa8], 2
je 0x413b6b
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x413b74
call fcn.004bb053
mov ecx, dword [esp + 0x48]
cmp dword [ecx + ebp + 0x18], 0x10
jb 0x413b81
mov ecx, dword [ecx + ebp + 4]
jmp 0x413b85
lea ecx, [ecx + ebp + 4]
mov eax, dword [esp + 0xbc]
push ebx
push 1
push eax
push ecx
lea ecx, [esp + 0x34]
push ecx
call fcn.00413840
mov eax, 0xf
add esp, 0x14
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov byte [esp + 0xa8], 4
je 0x413dac
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
cmp ebp, ebx
jle 0x413dac
ja 0x413c04
call fcn.004bb053
mov esi, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.00402150
lea ecx, [esp + 0x64]
call fcn.00410c00
mov edx, dword [esp + 0x7c]
cmp edx, 0x10
mov ecx, dword [esp + 0x68]
jb 0x413d50
cmp ecx, ebx
mov edi, ecx
mov dword [esp + 0x34], edi
je 0x413c59
cmp edx, 0x10
mov eax, ecx
jae 0x413c40
lea eax, [esp + 0x68]
cmp eax, edi
ja 0x413c59
cmp edx, 0x10
mov eax, ecx
jae 0x413c4f
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x78]
add eax, esi
cmp edi, eax
jbe 0x413c6a
call fcn.004bb053
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
cmp edx, 0x10
mov eax, ecx
jae 0x413c75
lea eax, [esp + 0x68]
lea edi, [eax + esi]
cmp edi, ebx
je 0x413c9c
cmp edx, 0x10
mov eax, ecx
jae 0x413c87
lea eax, [esp + 0x68]
cmp eax, edi
ja 0x413c9c
cmp edx, 0x10
mov eax, ecx
jae 0x413c96
lea eax, [esp + 0x68]
add eax, esi
cmp edi, eax
jbe 0x413ca9
call fcn.004bb053
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x413d5f
cmp ecx, ebx
mov esi, ecx
je 0x413cdc
cmp edx, 0x10
mov eax, ecx
jae 0x413cc3
lea eax, [esp + 0x68]
cmp eax, esi
ja 0x413cdc
cmp edx, 0x10
mov eax, ecx
jae 0x413cd2
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
add eax, ecx
cmp esi, eax
jbe 0x413ce1
call fcn.004bb053
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x58], bl
mov edx, dword [esp + 0x58]
push edx
push eax
push fcn.004baf02
push ecx
lea eax, [esp + 0x74]
push eax
push edi
lea edx, [esp + 0x74]
push esi
push edx
call fcn.0040f580
add esp, 0x20
cmp ebp, 1
jle 0x413da8
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x413d3c
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x413d45
call fcn.004bb053
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x34], 0x10
jb 0x413d68
mov esi, dword [esi + 0x20]
jmp 0x413d6b
lea eax, [esp + 0x68]
mov dword [esp + 0x34], eax
mov edi, eax
jmp 0x413c35
lea esi, [esp + 0x68]
jmp 0x413cb8
add esi, 0x20
mov al, byte [esi]
cmp al, bl
mov byte [esp + 0x3c], al
je 0x413da8
cmp al, 0x5c
jne 0x413d87
mov al, byte [esi + 1]
cmp al, bl
je 0x413d87
add esi, 1
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x3c]
push eax
push 1
lea ecx, [esp + 0x88]
call fcn.0040f990
mov al, byte [esi + 1]
add esi, 1
cmp al, bl
mov byte [esp + 0x3c], al
jne 0x413d75
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004130b0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x88]
push edx
mov ecx, eax
call fcn.00402150
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.00413560
mov esi, 0x10
mov dword [eax], edi
cmp dword [esp + 0x98], esi
jb 0x413dfa
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004b9684
add esp, 4
cmp dword [esp + 0x7c], esi
mov ebp, 0xf
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x413e27
mov edx, dword [esp + 0x68]
push edx
call fcn.004b9684
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
je 0x413e5d
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00410b50
mov edx, dword [esp + 0x38]
push edx
call fcn.004b9684
add esp, 0x14
mov ebp, dword [esp + 0x54]
add edi, 1
add ebp, 0x1c
cmp edi, dword [esp + 0x40]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], ebp
jl 0x413b32
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xbc], bl
call fcn.004125c0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b9684
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x413ee5
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.00410b50
mov eax, dword [esp + 0x58]
push eax
call fcn.004b9684
add esp, 0x14
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004b9963
add esp, 0x98
ret