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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [0x4af094]
push edi
mov edi, dword [0x4af09c]
mov word [ebp - 6], dx
mov word [ebp - 4], cx
mov dword [ebp - 0x14], edi
cmp dx, word [esi + 0x194]
jb 0x42d54f
xor edx, edx
jmp 0x42d565
mov eax, dword [esi + 0x198]
movzx ecx, dx
movzx eax, word [eax + ecx*2]
imul edx, eax, 0x2c
add edx, dword [esi + 0x400]
movzx eax, word [edx + 2]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
cmp eax, 0x20
jb 0x42d590
movzx eax, ax
sub eax, 0x20
imul ecx, eax, 0x92
mov eax, dword [edi + 0x1d4]
cmp dword [ecx + eax], 0
je 0x42db2c
mov esi, dword [0x4af098]
mov ax, word [ebp - 4]
movzx ecx, ax
cmp ax, word [esi + 0x48]
jb 0x42d5a7
xor eax, eax
jmp 0x42d5b7
mov eax, dword [esi + 0x4c]
movzx eax, word [eax + ecx*2]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x50]
lea eax, [eax + ecx*4]
mov esi, dword [edx + 0x14]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov al, byte [esi + 0x2a]
and al, 8
mov byte [ebp - 1], al
mov eax, ecx
or eax, 2
cmp byte [ebp - 1], 0
movzx edx, ax
movzx eax, cx
cmovne edx, eax
movzx eax, dx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x40]
jge 0x42db2c
mov eax, dword [ebp - 0x18]
movzx eax, ax
mov ecx, eax
cmp eax, 0x20
jae 0x42d613
mov eax, dword [ecx*4 + 0x49b6f8]
test eax, eax
je 0x42db2c
push esi
call eax
add esp, 4
jmp 0x42d63b
mov eax, dword [edi + 0x1d4]
imul ecx, ecx, 0x92
mov ecx, dword [ecx + eax - 0x1218]
test ecx, ecx
je 0x42db2c
movzx eax, word [esi + 0x24]
add eax, esi
push eax
push edi
call ecx
movzx eax, ax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42db2c
push 1
push eax
call fcn.00473719
mov esi, eax
add esp, 8
test esi, esi
je 0x42db2c
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
inc dword [edi + 0x3c]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [edi + 0x1278]
test eax, eax
jns 0x42d680
cmp dword [ecx], 0
je 0x42d683
add ecx, 8
cmp dword [ecx], 0
jne 0x42d676
jmp 0x42d683
lea ecx, [ecx + eax*8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [edx + 0x2e]
mov dword [esi + 0xb4], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x78], eax
cmp ecx, dword [edi + 0x4b8]
jbe 0x42d6a6
inc word [edi + 0x4bc]
sub ecx, dword [edi + 0x1278]
sar ecx, 3
mov word [esi], cx
mov ecx, 1
add word [edi + 0x14c], 1
mov ax, word [edi + 0x14c]
jne 0x42d6d3
mov word [edi + 0x14c], cx
mov eax, ecx
jmp 0x42d6d6
movzx eax, ax
mov cx, word [ebp - 6]
mov word [esi + 0x1a], ax
mov ax, word [ebp - 4]
mov word [esi + 0x10], ax
mov eax, dword [ebp - 0x1c]
mov word [esi + 0x12], cx
movzx eax, word [eax + 2]
mov word [esi + 0x18], ax
mov eax, dword [0x4af09c]
mov dword [esi + 8], eax
mov edx, dword [0x4af09c]
mov edi, dword [edx + 0x58]
cmp word [edi], cx
je 0x42d71b
nop dword [eax + eax]
add edi, 0x92
cmp word [edi], cx
jne 0x42d710
movzx eax, word [edi + 6]
test ax, ax
jns 0x42d75c
mov ax, word [esi]
mov ecx, edi
mov word [edi + 6], ax
mov eax, dword [0x4af09c]
sub ecx, dword [eax + 0x58]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
or eax, 0xffff8000
mov word [esi + 0x14], ax
mov eax, 0xffff8000
mov word [esi + 0x16], ax
jmp 0x42d785
movsx ecx, ax
mov eax, dword [edx + 0x1278]
mov ecx, dword [eax + ecx*8]
movzx eax, word [ecx + 0x14]
mov word [esi + 0x14], ax
movzx eax, word [esi]
mov word [ecx + 0x14], ax
movzx eax, word [ecx]
mov word [esi + 0x16], ax
movzx eax, word [esi]
mov word [edi + 6], ax
mov eax, dword [0x4af09c]
mov ecx, dword [edi + 8]
add ecx, dword [eax + 0x5c]
mov dword [esi + 0x20], ecx
movzx ecx, word [esi + 0x10]
mov dword [esi + 0x1c], edi
mov ax, word [edi + 0x34]
mov word [esi + 0x94], ax
movzx eax, word [edi + 0x44]
cmp cx, 0xffff
jne 0x42d7b5
mov word [esi + 0x10], ax
jmp 0x42d7bf
cmp ax, 0xffff
jne 0x42d7bf
mov word [edi + 0x44], cx
inc dword [edi + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0xc], esi
test ecx, 0x8000
jne 0x42d80f
movzx edx, word [esi + 0x94]
and ecx, 0xffffbfff
mov dword [esi + 0x78], ecx
mov edi, ecx
test edx, 0x200
je 0x42d7fe
mov eax, dword [0x4af098]
test byte [eax + 0xc], 0x20
je 0x42d7fe
or ecx, 0x4000
mov dword [esi + 0x78], ecx
test edx, 0x500
je 0x42d80f
or ecx, 0x4000
mov dword [esi + 0x78], ecx
movzx eax, word [esi + 0x18]
mov edi, dword [ebp - 0x14]
movsx edx, ax
cmp ax, 0x20
jge 0x42d832
mov eax, dword [edx*4 + 0x49b628]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx*4 + 0x49b680]
jmp 0x42d863
imul eax, edx, 0x92
mov edx, dword [edi + 0x1d4]
cmp dword [eax + edx - 0x1230], 0
mov edi, dword [eax + edx - 0x1238]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x14]
je 0x42d85c
mov eax, fcn.004593f0
jmp 0x42d863
mov eax, dword [eax + edx - 0x1234]
test cl, 2
mov ecx, 0x42e0a0
push 0
cmovne eax, ecx
mov ecx, dword [ebp - 0x1c]
push 0
push esi
mov dword [esi + 0x88], ecx
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], eax
call fcn.0042d230
test byte [edi + 0x28], 0x20
je 0x42d8a3
movsx ecx, word [esi + 0x12]
call fcn.00436320
mov ecx, eax
call fcn.00437110
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x44], edx
cmp eax, 0x80000000
jne 0x42d8b9
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], eax
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0x80000000
jne 0x42d8cc
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 0x18]
test ecx, ecx
je 0x42d8e2
cmp eax, 0xffffffff
jne 0x42d8e2
movzx eax, word [ecx + 0x10]
mov dword [ebp - 0x28], eax
lea ecx, [eax + eax*2]
mov dword [esi + 0x84], eax
mov eax, dword [0x4af098]
shl ecx, 5
add ecx, dword [eax + 0x30]
inc dword [ecx + 0x28]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov word [ebp - 0x36], ax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, 0xb8
mov ecx, dword [esi + 0x78]
mov dword [ebp - 8], eax
test ecx, 0x230
je 0x42d962
mov eax, 0x130
mov dword [esi + 0xc0], fcn.0040d460
mov dword [ebp - 8], eax
mov dword [esi + 0xc4], 0x433c60
mov dword [esi + 0xe0], 0x3f800000
mov dword [esi + 0xe4], 0x3f800000
mov dword [esi + 0xcc], 0xffffffff
test cl, 0x10
je 0x42d989
add eax, 0x9e
test byte [ebp - 0x36], 1
mov dword [ebp - 8], eax
jne 0x42d989
lea eax, [ebp - 0x3c]
xor ecx, ecx
push eax
push edx
mov edx, esi
call fcn.0042f120
mov ecx, dword [esi + 0x78]
add esp, 8
test cl, 0x20
je 0x42da50
mov eax, dword [ebp - 8]
mov ecx, esi
mov dword [esi + 0xb8], eax
add eax, 0x50
mov dword [ebp - 8], eax
mov dword [esi + 0xc4], fcn.00433d50
call fcn.00433cb0
mov edx, dword [esi + 0x44]
movzx eax, word [edx + 6]
cmp word [eax + edx + 0xa], 0
jl 0x42d9da
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc4], 0x4338d0
mov dword [esi + eax], 4
jmp 0x42da29
movzx edi, word [edx + 6]
xor ecx, ecx
xor eax, eax
lea eax, [edi + eax*2]
cmp word [eax + edx + 4], 0
jge 0x42d9f9
mov eax, dword [ecx*4 + 0x49baa4]
inc ecx
test eax, eax
jns 0x42d9e2
cmp dword [ecx*4 + 0x49baa0], 0
mov edi, dword [ebp - 0x14]
jge 0x42da50
movzx eax, word [edx + 6]
cmp word [eax + edx + 0xc], 0
jl 0x42da50
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc4], 0x433a60
mov dword [esi + eax], 5
xor edx, edx
mov ecx, esi
call fcn.00433dc0
mov eax, dword [esi + 0xb8]
cmp dword [eax + esi + 0x3c], 0
jne 0x42da47
mov dword [eax + esi + 0x3c], 1
push esi
call fcn.00433d50
add esp, 4
mov eax, dword [esi + 0x78]
test eax, 0x200
je 0x42da7a
mov eax, dword [ebp - 8]
mov ecx, esi
mov dword [esi + 0xbc], eax
add eax, 0x24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401950
mov eax, dword [esi + 0x78]
add esp, 4
test eax, 0x100
je 0x42da98
mov eax, dword [ebp - 8]
mov dword [esi + 0x80], eax
test eax, eax
je 0x42da98
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.00402570
movzx eax, word [esi + 0x18]
movsx ecx, ax
cmp ax, 0x20
jge 0x42daec
mov eax, dword [ecx*4 + 0x49b6d0]
test eax, eax
je 0x42dac2
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0xc]
push esi
call eax
add esp, 0xc
test ax, ax
jne 0x42db18
mov eax, dword [esi + 0x78]
test al, 0x40
je 0x42dad2
inc dword [edi + 0x518]
mov eax, dword [esi + 0x78]
test eax, 0x200
je 0x42dae0
mov ecx, esi
call fcn.00401ae0
movsx eax, word [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ecx - 0x20]
imul ecx, eax, 0x92
mov eax, dword [edi + 0x1d4]
mov edx, dword [ecx + eax]
test edx, edx
je 0x42dac2
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0x24]
add eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
push esi
call edx
test ax, ax
je 0x42dac2
dec word [edi + 0x4bc]
mov edx, 1
movsx ecx, word [esi]
call fcn.0042db40
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret