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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x24], ebx
cmp byte [edi + 0x49], 1
jne 0x41ae0e
mov cl, byte [edi + 0x48]
test cl, 2
je 0x41ae0e
mov eax, dword [edi + 0x78]
cmp byte [eax + 2], 0
je 0x41ae0e
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp dword [edi + 0x18], eax
jne 0x41adfd
cmp dword [edi + 0x1c], edx
jne 0x41adfd
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
jmp 0x41b152
test cl, 8
je 0x41ae0e
cmp dword [edi + 0x1c], edx
jl 0x41ae3a
jg 0x41ae0e
cmp dword [edi + 0x18], eax
jb 0x41ae3a
test ebx, ebx
je 0x41ae22
mov ecx, ebx
call fcn.00423940
mov dword [ebp - 0x18], eax
mov byte [ebx + 7], 0
jmp 0x41ae26
and dword [ebp - 0x18], 0
mov ecx, edi
call fcn.0041ab96
test eax, eax
jne 0x41b152
cmp byte [edi + 0x49], al
jne 0x41ae42
mov eax, dword [ebp + 0x14]
or dword [eax], 0xffffffff
jmp 0x41adf6
xor eax, eax
inc eax
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
movsx eax, word [edi + 0x4c]
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, dword [edi + eax*4 + 0x78]
mov dword [ebp - 0x20], esi
movzx ecx, word [esi + 0x12]
lea edx, [esi + 0x14]
dec ecx
mov dword [ebp - 8], edx
mov ebx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
sar ebx, cl
lea ecx, [esi + 0x38]
cmp dword [ebp - 0x18], 0
mov word [edi + eax*2 + 0x4e], bx
lea eax, [esi + 0x40]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x41afac
mov ecx, dword [ecx]
movzx edx, word [edx]
mov eax, dword [eax]
mov dword [ebp - 0x30], ecx
mov cl, byte [esi + 3]
mov byte [ebp - 1], cl
movzx ecx, byte [esi + 7]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], ecx
movzx ecx, byte [eax + ebx*2 + 1]
movzx eax, byte [eax + ebx*2]
shl eax, 8
or ecx, eax
and ecx, edx
add ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x30]
cmp byte [ebp - 1], 0
je 0x41aed5
jmp 0x41aecf
cmp ecx, dword [esi + 0x3c]
jae 0x41b0f4
cmp byte [ecx], 0x80
inc ecx
jae 0x41aec6
lea edx, [ebp - 0x40]
call fcn.0040e2ef
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp ecx, dword [ebp + 0xc]
jg 0x41af40
jl 0x41aef1
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x41af43
mov eax, dword [ebp - 0x1c]
lea edx, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jle 0x41af5b
mov eax, dword [ebp - 0xc]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
cmp byte [eax + 5], 0
jne 0x41b10a
mov esi, eax
mov ebx, dword [ebp - 0x10]
movzx eax, word [esi + 0x12]
cmp edx, eax
jl 0x41b0b4
movzx ecx, byte [esi + 6]
add ecx, 8
jmp 0x41b0cc
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x41af7c
jg 0x41af4e
cmp eax, edx
jbe 0x41af7c
mov edx, dword [ebp - 0x14]
lea eax, [ebx - 1]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jg 0x41af6b
lea ebx, [eax + edx]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sar ebx, 1
jmp 0x41aea8
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 8], eax
inc esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x41af13
or byte [edi + 0x48], 2
mov dword [edi + 0x18], eax
movsx eax, word [edi + 0x4c]
mov dword [edi + 0x1c], ecx
mov word [edi + eax*2 + 0x4e], bx
cmp byte [esi + 5], 0
jne 0x41b100
mov eax, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
jmp 0x41af25
mov eax, dword [eax]
movzx edx, byte [esi + 7]
mov dword [ebp - 0x28], edx
movzx edx, byte [eax + ebx*2 + 1]
movzx eax, byte [eax + ebx*2]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
and edx, eax
add edx, dword [ecx]
add edx, dword [ebp - 0x28]
movzx ecx, byte [edx]
lea eax, [edx + 1]
mov dword [ebp - 0x38], eax
movzx eax, byte [esi + 8]
cmp ecx, eax
ja 0x41afe6
mov eax, dword [ebp - 0x38]
jmp 0x41b003
mov al, byte [edx + 1]
test al, al
js 0x41b012
and ecx, 0x7f
movzx eax, al
shl ecx, 7
add ecx, eax
movzx eax, word [esi + 0xa]
cmp ecx, eax
ja 0x41b012
lea eax, [edx + 2]
push dword [ebp - 0x24]
push eax
push ecx
call dword [ebp - 0x18]
add esp, 0xc
mov esi, eax
jmp 0x41b07b
sub edx, dword [ebp - 0x28]
lea esi, [edi + 0x18]
mov ecx, dword [ebp - 0x20]
push esi
call fcn.004181ed
mov esi, dword [esi]
mov eax, esi
pop ecx
cdq
push edx
push eax
mov dword [ebp - 0x38], esi
call fcn.0040b444
mov dword [ebp - 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x41b143
movsx ecx, word [edi + 0x4c]
xor edx, edx
push 2
push eax
push esi
mov word [edi + ecx*2 + 0x4e], bx
mov ecx, edi
call fcn.0041a818
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41b138
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x38]
call dword [ebp - 0x18]
add esp, 0xc
mov esi, eax
push dword [ebp - 0x28]
call fcn.0040b681
pop ecx
test esi, esi
jns 0x41b08a
mov eax, dword [ebp - 0x1c]
lea edx, [ebx + 1]
mov dword [ebp - 0x14], edx
jmp 0x41b099
jle 0x41b11a
mov edx, dword [ebp - 0x14]
lea eax, [ebx - 1]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jg 0x41af13
mov esi, dword [ebp - 0x20]
lea ebx, [eax + edx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sar ebx, 1
jmp 0x41afac
mov eax, dword [ecx]
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
and ecx, eax
add ecx, dword [ebx]
call fcn.0040e4d7
movsx ecx, word [edi + 0x4c]
mov edx, dword [ebp - 0x14]
mov word [edi + ecx*2 + 0x4e], dx
mov edx, eax
mov ecx, edi
call fcn.0041aafc
mov esi, eax
test esi, esi
je 0x41ae4b
jmp 0x41b146
mov ecx, 0xe256
call fcn.004587a7
jmp 0x41b152
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor esi, esi
jmp 0x41b146
movsx eax, word [edi + 0x4c]
mov word [edi + eax*2 + 0x4e], bx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x41b106
mov eax, dword [ebp + 0x14]
xor esi, esi
and dword [eax], 0
movsx eax, word [edi + 0x4c]
mov word [edi + eax*2 + 0x4e], bx
mov eax, dword [ebp - 0x24]
cmp byte [eax + 7], 0
je 0x41b146
push 0xb
jmp 0x41b145
push dword [ebp - 0x28]
call fcn.0040b681
pop ecx
jmp 0x41b146
push 7
pop esi
xor eax, eax
and byte [edi + 0x48], 0xf9
mov word [edi + 0x2c], ax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret