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

Disassembly:
push 0xffffffffffffffff
push 0x48ca70
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b81f4]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
xor ebx, ebx
xor esi, esi
mov eax, dword [esi*4 + 0x4b9848]
push eax
push ebp
call fcn.0046c3b8
add esp, 8
cmp eax, ebp
je 0x421606
inc esi
cmp esi, 2
jb 0x421595
mov edi, fcn.0046b865
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], fcn.0046b942
mov dword [esp + 0x30], fcn.0046bdd0
mov dword [esp + 0x34], edi
push ebp
lea esi, [esp + 0x20]
mov dword [esp + 0x98], ebx
call fcn.004212d0
add esp, 4
cmp dword [esp + 0x20], ebx
jg 0x421622
mov edx, dword [esp + 0x9c]
mov eax, ebp
call fcn.0040f920
jmp 0x421935
cmp dword [esi*4 + 0x4b9848], ebx
je 0x4215b0
mov edx, dword [esp + 0x9c]
mov eax, ebp
call fcn.0040f920
jmp 0x421950
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], fcn.0046b942
mov dword [esp + 0x84], fcn.0046bdd0
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0xa4]
push edi
lea esi, [esp + 0x74]
mov byte [esp + 0x98], 1
call fcn.004212d0
mov eax, fcn.0046b942
mov edx, fcn.0046bdd0
mov ecx, fcn.0046b865
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
push edi
sub esp, 0x1c
mov edi, esi
mov eax, esp
mov byte [esp + 0xb4], 3
mov dword [esp + 0x38], esp
call fcn.00421c50
lea ecx, [esp + 0x58]
call fcn.00421380
add esp, 0x20
push ebp
sub esp, 0x1c
lea edi, [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00421c50
lea ecx, [esp + 0x74]
call fcn.00421380
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x74]
add edi, 0xfffffffe
add esp, 0x20
xor eax, eax
cmp edi, ebx
jl 0x421711
cmp dword [ecx + 4], ebx
jne 0x421713
mov eax, 1
xor edi, edi
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jge 0x42185d
mov edx, edi
imul edx, edx, 0x124
imul eax, eax, 0x124
mov dword [esp + 0x14], edx
lea ebp, [eax + ecx + 0xc]
jmp 0x421740
mov eax, ebp
cmp byte [ebp + 0x110], bl
jne 0x42174d
mov eax, dword [ebp - 4]
mov ecx, 0x4ae01c
add eax, 4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42177b
cmp dx, bx
je 0x421777
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42177b
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x421755
xor eax, eax
jmp 0x421780
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x421844
lea esi, [ebp - 0xc]
mov ecx, 0x4adce0
mov eax, esi
call fcn.0040fa00
test al, al
je 0x42180a
sub dword [esp + 0x14], 0x124
dec edi
cmp edi, ebx
jge 0x421844
lea edi, [esp + 0x54]
mov byte [esp + 0x94], 2
call fcn.00404850
lea edi, [esp + 0x38]
mov byte [esp + 0x94], 1
call fcn.00404850
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x4217e8
push eax
call dword [esp + 0x8c]
add esp, 4
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x421803
push eax
call dword [esp + 0x38]
add esp, 4
xor al, al
jmp 0x421952
add dword [esp + 0x14], 0x124
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x421825
push esi
lea esi, [esp + 0x3c]
call fcn.004047d0
jmp 0x421844
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add edx, ecx
mov eax, ebp
cmp byte [ebp + 0x110], bl
jne 0x42183c
mov eax, dword [ebp - 4]
add eax, 4
call fcn.0040f920
mov eax, dword [esp + 0x18]
inc eax
add ebp, 0x124
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jl 0x421740
mov ebp, dword [esp + 0x9c]
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.004214f0
add esp, 8
xor esi, esi
jmp 0x421880
mov ecx, dword [esi*4 + 0x4b9848]
mov edi, dword [esp + 0xa4]
push ecx
push edi
call fcn.0046c3b8
add esp, 8
cmp eax, edi
je 0x4218a4
inc esi
cmp esi, 2
jb 0x421880
jmp 0x4218f9
mov edx, dword [esi*4 + 0x4b9848]
cmp edx, ebx
je 0x4218f9
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4218b4
mov edi, dword [ebp + 4]
sub eax, esi
sar eax, 1
mov ebx, eax
lea esi, [ebp + 8]
push edx
mov eax, esi
call fcn.00410320
add edi, ebx
lea ecx, [edi + 1]
mov dword [ebp + 4], edi
call fcn.00410400
cmp byte [esi + 0x114], 0
je 0x4218ee
add esi, 4
jmp 0x4218f0
mov esi, dword [esi]
xor edx, edx
mov word [esi + edi*2 + 4], dx
xor ebx, ebx
lea edi, [esp + 0x54]
mov byte [esp + 0x94], 2
call fcn.00404850
lea edi, [esp + 0x38]
mov byte [esp + 0x94], 1
call fcn.00404850
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x421935
push eax
call dword [esp + 0x8c]
add esp, 4
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x421950
push eax
call dword [esp + 0x38]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret