Function at 0x42de70
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 [0x4b00b4]
push edi
mov edi, dword [0x4b00bc]
mov word [ebp - 6], dx
mov word [ebp - 4], cx
mov dword [ebp - 0x14], edi
cmp dx, word [esi + 0x194]
jb 0x42deaf
xor edx, edx
jmp 0x42dec5
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 0x42def0
movzx eax, ax
sub eax, 0x20
imul ecx, eax, 0x92
mov eax, dword [edi + 0x1d4]
cmp dword [ecx + eax], 0
je 0x42e48c
mov esi, dword [0x4b00b8]
mov ax, word [ebp - 4]
movzx ecx, ax
cmp ax, word [esi + 0x48]
jb 0x42df07
xor eax, eax
jmp 0x42df17
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 0x42e48c
mov eax, dword [ebp - 0x18]
movzx eax, ax
mov ecx, eax
cmp eax, 0x20
jae 0x42df73
mov eax, dword [ecx*4 + 0x49c660]
test eax, eax
je 0x42e48c
push esi
call eax
add esp, 4
jmp 0x42df9b
mov eax, dword [edi + 0x1d4]
imul ecx, ecx, 0x92
mov ecx, dword [ecx + eax - 0x1218]
test ecx, ecx
je 0x42e48c
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 0x42e48c
push 1
push eax
call fcn.00474099
mov esi, eax
add esp, 8
test esi, esi
je 0x42e48c
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 0x42dfe0
cmp dword [ecx], 0
je 0x42dfe3
add ecx, 8
cmp dword [ecx], 0
jne 0x42dfd6
jmp 0x42dfe3
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 0x42e006
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 0x42e033
mov word [edi + 0x14c], cx
mov eax, ecx
jmp 0x42e036
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 [0x4b00bc]
mov dword [esi + 8], eax
mov edx, dword [0x4b00bc]
mov edi, dword [edx + 0x58]
cmp word [edi], cx
je 0x42e07b
nop dword [eax + eax]
add edi, 0x92
cmp word [edi], cx
jne 0x42e070
movzx eax, word [edi + 6]
test ax, ax
jns 0x42e0bc
mov ax, word [esi]
mov ecx, edi
mov word [edi + 6], ax
mov eax, dword [0x4b00bc]
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 0x42e0e5
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 [0x4b00bc]
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 0x42e115
mov word [esi + 0x10], ax
jmp 0x42e11f
cmp ax, 0xffff
jne 0x42e11f
mov word [edi + 0x44], cx
inc dword [edi + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0xc], esi
test ecx, 0x8000
jne 0x42e16f
movzx edx, word [esi + 0x94]
and ecx, 0xffffbfff
mov dword [esi + 0x78], ecx
mov edi, ecx
test edx, 0x200
je 0x42e15e
mov eax, dword [0x4b00b8]
test byte [eax + 0xc], 0x20
je 0x42e15e
or ecx, 0x4000
mov dword [esi + 0x78], ecx
test edx, 0x500
je 0x42e16f
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 0x42e192
mov eax, dword [edx*4 + 0x49c5e8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx*4 + 0x49c5c0]
jmp 0x42e1c3
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 0x42e1bc
mov eax, fcn.00459880
jmp 0x42e1c3
mov eax, dword [eax + edx - 0x1234]
test cl, 2
mov ecx, 0x42ea00
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.0042dbd0
test byte [edi + 0x28], 0x20
je 0x42e203
movsx ecx, word [esi + 0x12]
call fcn.00436c90
mov ecx, eax
call fcn.00437a90
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x44], edx
cmp eax, 0x80000000
jne 0x42e219
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], eax
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0x80000000
jne 0x42e22c
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 0x18]
test ecx, ecx
je 0x42e242
cmp eax, 0xffffffff
jne 0x42e242
movzx eax, word [ecx + 0x10]
mov dword [ebp - 0x28], eax
lea ecx, [eax + eax*2]
mov dword [esi + 0x84], eax
mov eax, dword [0x4b00b8]
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 0x42e2c2
mov eax, 0x130
mov dword [esi + 0xc0], fcn.0040d5d0
mov dword [ebp - 8], eax
mov dword [esi + 0xc4], 0x4345c0
mov dword [esi + 0xe0], 0x3f800000
mov dword [esi + 0xe4], 0x3f800000
mov dword [esi + 0xcc], 0xffffffff
test cl, 0x10
je 0x42e2e9
add eax, 0x9e
test byte [ebp - 0x36], 1
mov dword [ebp - 8], eax
jne 0x42e2e9
lea eax, [ebp - 0x3c]
xor ecx, ecx
push eax
push edx
mov edx, esi
call fcn.0042fa80
mov ecx, dword [esi + 0x78]
add esp, 8
test cl, 0x20
je 0x42e3b0
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.004346b0
call fcn.00434610
mov edx, dword [esi + 0x44]
movzx eax, word [edx + 6]
cmp word [eax + edx + 0xa], 0
jl 0x42e33a
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc4], 0x434230
mov dword [esi + eax], 4
jmp 0x42e389
movzx edi, word [edx + 6]
xor ecx, ecx
xor eax, eax
lea eax, [edi + eax*2]
cmp word [eax + edx + 4], 0
jge 0x42e359
mov eax, dword [ecx*4 + 0x49ca44]
inc ecx
test eax, eax
jns 0x42e342
cmp dword [ecx*4 + 0x49ca40], 0
mov edi, dword [ebp - 0x14]
jge 0x42e3b0
movzx eax, word [edx + 6]
cmp word [eax + edx + 0xc], 0
jl 0x42e3b0
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc4], 0x4343c0
mov dword [esi + eax], 5
xor edx, edx
mov ecx, esi
call fcn.00434720
mov eax, dword [esi + 0xb8]
cmp dword [eax + esi + 0x3c], 0
jne 0x42e3a7
mov dword [eax + esi + 0x3c], 1
push esi
call fcn.004346b0
add esp, 4
mov eax, dword [esi + 0x78]
test eax, 0x200
je 0x42e3da
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.00401970
mov eax, dword [esi + 0x78]
add esp, 4
test eax, 0x100
je 0x42e3f8
mov eax, dword [ebp - 8]
mov dword [esi + 0x80], eax
test eax, eax
je 0x42e3f8
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.00402590
movzx eax, word [esi + 0x18]
movsx ecx, ax
cmp ax, 0x20
jge 0x42e44c
mov eax, dword [ecx*4 + 0x49c638]
test eax, eax
je 0x42e422
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0xc]
push esi
call eax
add esp, 0xc
test ax, ax
jne 0x42e478
mov eax, dword [esi + 0x78]
test al, 0x40
je 0x42e432
inc dword [edi + 0x518]
mov eax, dword [esi + 0x78]
test eax, 0x200
je 0x42e440
mov ecx, esi
call fcn.00401b00
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 0x42e422
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 0x42e422
dec word [edi + 0x4bc]
mov edx, 1
movsx ecx, word [esi]
call fcn.0042e4a0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret