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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x28], ebx
cmp byte [edi + 0x42], 1
jne 0x42385e
mov al, byte [edi + 0x40]
test al, 2
je 0x42385e
cmp byte [edi + 0x45], 0
je 0x42385e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp dword [edi + 0x10], ecx
jne 0x42384e
cmp dword [edi + 0x14], edx
jne 0x42384e
mov eax, dword [esp + 0x54]
and dword [eax], 0
xor eax, eax
jmp 0x423b9b
test al, 8
je 0x42385e
cmp dword [edi + 0x14], edx
jl 0x42388c
jg 0x42385e
cmp dword [edi + 0x10], ecx
jb 0x42388c
test ebx, ebx
je 0x423873
mov ecx, ebx
call fcn.0042c7ef
mov dword [esp + 0x20], eax
mov byte [ebx + 7], 0
jmp 0x423878
and dword [esp + 0x20], 0
mov ecx, edi
call fcn.0042360c
test eax, eax
jne 0x423b9b
cmp byte [edi + 0x42], al
jne 0x423895
mov eax, dword [esp + 0x54]
or dword [eax], 0xffffffff
jmp 0x423847
xor edx, edx
inc edx
sub edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
movsx eax, byte [edi + 0x44]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, edx
mov ebp, dword [edi + eax*4 + 0x78]
movzx esi, word [ebp + 0x12]
lea edx, [ebp + 0x14]
dec esi
mov dword [esp + 0x18], edx
mov ebx, esi
mov dword [esp + 0x30], esi
sar ebx, cl
cmp dword [esp + 0x20], 0
mov word [edi + eax*2 + 0x50], bx
lea eax, [ebp + 0x40]
mov dword [esp + 0x24], eax
jne 0x4239da
movzx edx, word [edx]
mov cl, byte [ebp + 3]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0x17], cl
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, dx
movzx ecx, cx
and ecx, eax
add ecx, dword [ebp + 0x44]
cmp byte [esp + 0x17], 0
je 0x42391a
jmp 0x423914
cmp ecx, dword [ebp + 0x3c]
jae 0x423b23
cmp byte [ecx], 0x80
inc ecx
jae 0x42390b
lea edx, [esp + 0x3c]
call fcn.0041690e
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x4c]
jg 0x42397f
jl 0x42393b
mov edx, dword [esp + 0x48]
cmp eax, edx
jae 0x423983
lea edx, [ebx + 1]
mov dword [esp + 0x1c], edx
cmp edx, esi
jle 0x42399a
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp byte [ebp + 5], 0
mov ecx, dword [esp + 0x24]
jne 0x423b3f
mov ebx, dword [esp + 0x18]
movzx eax, word [ebp + 0x12]
cmp edx, eax
jl 0x423ae6
movzx ecx, byte [ebp + 6]
mov eax, dword [ebp + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x423afe
mov edx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x4c]
jl 0x4239b1
jg 0x42398f
cmp eax, edx
jbe 0x4239b1
mov edx, dword [esp + 0x1c]
lea esi, [ebx - 1]
cmp edx, esi
jg 0x4239ac
mov eax, dword [esp + 0x30]
lea ebx, [esi + edx]
mov edx, dword [esp + 0x2c]
sar ebx, 1
jmp 0x4238ef
xor esi, esi
inc esi
jmp 0x423949
or byte [edi + 0x40], 2
mov dword [edi + 0x10], eax
movsx eax, byte [edi + 0x44]
mov dword [edi + 0x14], ecx
mov word [edi + eax*2 + 0x50], bx
cmp byte [ebp + 5], 0
jne 0x423b34
mov ecx, dword [esp + 0x24]
mov edx, ebx
mov dword [esp + 0x1c], edx
jmp 0x42395f
mov eax, dword [eax]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx]
movzx ecx, cx
and ecx, eax
movzx eax, byte [ebp + 8]
add ecx, dword [ebp + 0x44]
movzx edx, byte [ecx]
lea esi, [ecx + 1]
cmp edx, eax
ja 0x423a04
push dword [esp + 0x28]
push esi
jmp 0x423a25
mov al, byte [esi]
test al, al
js 0x423a31
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [ebp + 0xa]
cmp edx, eax
ja 0x423a31
push dword [esp + 0x28]
lea eax, [ecx + 2]
push eax
push edx
call dword [esp + 0x2c]
add esp, 0xc
mov esi, eax
jmp 0x423aaa
movzx eax, byte [ebp + 7]
lea esi, [edi + 0x10]
push esi
sub ecx, eax
push ecx
push ebp
call dword [ebp + 0x50]
mov esi, dword [esi]
add esp, 0xc
mov dword [esp + 0x34], esi
cmp esi, 2
jl 0x423b83
lea eax, [esi + 0x12]
push eax
call fcn.00413bd0
mov dword [esp + 0x30], eax
pop ecx
test eax, eax
je 0x423b7e
movsx ecx, byte [edi + 0x44]
xor edx, edx
push 2
push eax
push esi
mov word [edi + ecx*2 + 0x50], bx
mov ecx, edi
call fcn.0042328e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x423b72
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x3c]
call dword [esp + 0x2c]
add esp, 0xc
mov esi, eax
push dword [esp + 0x2c]
call fcn.00413de1
pop ecx
test esi, esi
jns 0x423abb
mov eax, dword [esp + 0x30]
lea edx, [ebx + 1]
mov dword [esp + 0x1c], edx
jmp 0x423acc
jle 0x423b50
mov edx, dword [esp + 0x1c]
lea eax, [ebx - 1]
mov dword [esp + 0x30], eax
cmp edx, eax
jg 0x423951
lea ebx, [eax + edx]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
sar ebx, 1
jmp 0x4239da
mov eax, dword [ecx]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp + 0x38]
mov edx, dword [ecx + eax]
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x1c]
bswap edx
mov word [edi + eax*2 + 0x50], cx
mov ecx, edi
call fcn.00423593
mov esi, eax
test esi, esi
jne 0x423b8f
mov edx, dword [esp + 0x38]
jmp 0x4238a0
mov ecx, 0xe932
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
jmp fcn.00461cb5
mov eax, dword [esp + 0x54]
and dword [eax], 0
xor esi, esi
jmp 0x423b8f
movsx eax, byte [edi + 0x44]
mov word [edi + eax*2 + 0x50], bx
mov eax, dword [esp + 0x54]
mov dword [eax], esi
jmp 0x423b3b
mov eax, dword [esp + 0x54]
xor esi, esi
push 0xb
pop ecx
and dword [eax], 0
movsx eax, byte [edi + 0x44]
mov word [edi + eax*2 + 0x50], bx
mov eax, dword [esp + 0x28]
cmp byte [eax + 7], 0
cmovne esi, ecx
jmp 0x423b8f
push dword [esp + 0x2c]
call fcn.00413de1
pop ecx
jmp 0x423b8f
push 7
pop esi
jmp 0x423b8f
mov ecx, 0xe97b
call fcn.00461cb5
mov esi, eax
xor eax, eax
and byte [edi + 0x40], 0xf9
mov word [edi + 0x24], ax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret