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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov ebx, edx
mov edi, ecx
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x98], eax
mov dword [esp + 0x4c], 0x1400
mov dword [esp + 0x50], 0
push 0
push 2
push 0x1400
call fcn.004392c0
add esp, 0xc
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push 0
push 4
push 0x1400
call fcn.004392c0
add esp, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push 0
push 8
push 0x1400
call fcn.004392c0
add esp, 0xc
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 4], esi
cmp esi, ebp
setl al
xor ecx, ecx
cmp ebx, dword [esp + 0xb4]
setl cl
mov dword [esp + 8], ecx
cmove ecx, eax
sete byte [esp + 3]
cmp cl, 1
mov dword [esp + 0x14], edi
jne 0x410360
lea eax, [edi + 0x60]
mov dword [esp + 0x1c], eax
cmp byte [esp + 0xbc], 0
mov eax, 0
cmovne eax, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
jmp 0x40febf
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, ebp
setl al
xor ecx, ecx
cmp ebx, dword [esp + 0xb4]
sete byte [esp + 3]
setl cl
mov dword [esp + 8], ecx
cmove ecx, eax
mov dword [esp + 4], edx
test cl, cl
je 0x410360
mov ecx, edi
mov edx, ebx
push 0
push 0x199d
call fcn.0040e150
add esp, 8
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x12c]
mov dword [esp + 0xc], ecx
movzx edx, word [eax]
test dl, 0x10
mov dword [esp + 0x10], eax
jne 0x40ff40
xor edx, edx
test ecx, ecx
je 0x40ff82
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
lea esi, [ecx + ecx*4]
lea edx, [edx + esi*4]
add edx, 0xfffffffc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [edx - 0x10]
cmp esi, 0x20
je 0x40ff26
and esi, 0xfffffcff
cmp esi, 0xd820
jne 0x40ff80
cmp dword [edx], 0
jne 0x40ff80
cmp dword [esp + 4], ecx
jge 0x40ff80
add ecx, 0xffffffff
add edx, 0xffffffec
test ecx, ecx
jne 0x40ff10
xor edx, edx
jmp 0x40ff82
cmp byte [eax + 0x18], 0
mov eax, ecx
je 0x40ff5a
lea eax, [ecx - 3]
cmp ecx, 3
mov esi, 0
cmovl eax, esi
mov dword [esp + 0xc], eax
test dl, 0x20
je 0x40ff7b
test eax, eax
cmovne ecx, eax
cmove eax, ebx
lea edx, [esp + 0xc]
lea esi, [esp + 0x18]
cmove edx, esi
mov dword [esp + 0xc], ecx
add eax, 0xffffffff
mov dword [edx], eax
xor edx, edx
jmp 0x40ff9c
mov edx, ecx
mov dword [esp + 0xc], edx
xor eax, eax
cmp edx, ebp
setl al
xor edx, edx
cmp ebx, dword [esp + 0xb4]
setl dl
cmove edx, eax
mov ecx, dword [esp + 4]
cmp byte [esp + 0xbc], 0
je 0x40ffbb
mov eax, dword [esp + 0xc]
cmp eax, ebp
cmovg eax, ebp
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
mov dword [esp + 0x24], edx
xor eax, eax
cmp ecx, ebp
setl al
movzx esi, byte [esp + 8]
test byte [esp + 3], 1
cmove eax, esi
test al, 1
je 0x4102f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
jmp 0x410031
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 4]
add ecx, 1
xor eax, eax
cmp ecx, ebp
setl al
test byte [esp + 3], 1
cmove eax, esi
test al, 1
je 0x4102f0
mov dword [esp + 4], ecx
xor eax, eax
cmp ecx, dword [esp + 0x30]
setl al
xor ecx, ecx
cmp ebx, dword [esp + 0x34]
setl cl
cmove ecx, eax
cmp cl, 1
mov edx, dword [esp + 4]
jne 0x4102f0
mov ebp, ebx
mov ebx, edi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
lea ecx, [edx + edx*4]
mov edi, dword [eax + ecx*4]
cmp edi, 0xdfff
jne 0x410080
mov edi, ebx
mov ebx, ebp
mov ebp, dword [esp + 0xb8]
jmp 0x410013
mov esi, dword [esp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebp, [edx + edx*4]
mov ecx, dword [eax + ebp*4 + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + ebp*4 + 8]
mov eax, dword [eax + ebp*4 + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov eax, edi
and eax, 0xffffff00
cmp eax, 0xd800
mov ecx, edi
mov edi, ebx
je 0x4100d4
cmp eax, 0xda00
je 0x4100f0
cmp eax, 0xd900
jne 0x410123
cmp byte [edi + 0x10ff], 0
je 0x410101
mov eax, dword [edi + 0x106c]
movzx ecx, cl
lea eax, [eax + ecx*2]
add eax, 0x20c
jmp 0x410120
mov eax, dword [edi + 0x106c]
movzx ecx, cl
lea eax, [eax + ecx*2]
add eax, 0xc
jmp 0x410120
mov eax, dword [edi + 0x106c]
movzx ecx, cl
lea eax, [eax + ecx*2]
add eax, 0x60c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [eax]
mov eax, ecx
and eax, 0xffffff00
cmp eax, 0xdc00
je 0x410150
cmp eax, 0xdd00
jne 0x410164
mov eax, dword [edi + 0x106c]
movzx ecx, cl
lea eax, [eax + ecx*2]
add eax, 0x40c
jmp 0x410161
mov eax, dword [edi + 0x106c]
movzx ecx, cl
lea eax, [eax + ecx*2]
add eax, 0x80c
movzx ecx, word [eax]
lea eax, [ecx - 0x10001]
cmp eax, 0xffffe
ja 0x4101a0
lea ebx, [ecx + 0xff0000]
shr ebx, 0xa
or ebx, 0xd800
mov word [esp + 0x78], bx
mov eax, ecx
and eax, 0x3ff
or eax, 0xdc00
mov word [esp + 0x7a], ax
lea eax, [esp + 0x7c]
jmp 0x4101ab
mov word [esp + 0x78], cx
lea eax, [esp + 0x7a]
mov ebx, ecx
mov word [eax], 0
mov eax, ecx
and eax, 0xfffffe00
cmp eax, 0xdc00
mov dword [esp + 0x3c], edx
mov dword [esp + 8], ebp
jne 0x410270
movzx eax, cl
cmp eax, 0x20
jb 0x410270
cmp eax, 0x7f
je 0x410270
mov eax, dword [edi + 0x106c]
mov dword [esp + 0x38], ecx
movsx ecx, cl
push ecx
push dword [eax + 4]
call fcn.0043e8b0
add esp, 8
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x6c], cl
mov ecx, 1
test al, al
je 0x410226
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 4]
add ecx, 1
mov dword [esp + 4], ecx
lea ecx, [ecx + ecx*4]
mov al, byte [eax + ecx*4]
mov byte [esp + 0x6d], al
mov ecx, 2
lea edx, [esp + 0x70]
mov eax, dword [edi + 0x106c]
push 4
push edx
push ecx
lea ecx, [esp + 0x78]
push ecx
push 0
push dword [eax + 4]
mov esi, edx
call fcn.0043e550
add esp, 0x18
test eax, eax
jle 0x410270
mov edi, eax
add eax, edi
push eax
push esi
lea eax, [esp + 0x80]
push eax
call fcn.004a0b20
add esp, 0xc
mov word [esp + edi*2 + 0x78], 0
movzx ebx, word [esp + 0x78]
nop
nop
test bx, bx
lea ecx, [esp + 0x4c]
mov ebp, dword [esp + 0x40]
je 0x4102b5
lea edi, [esp + 0x7a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
movzx edx, bx
mov ebx, ecx
push esi
push eax
push ebp
call fcn.004185a0
mov ecx, ebx
add esp, 0xc
movzx ebx, word [edi]
add edi, 2
test bx, bx
jne 0x410290
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 8]
mov ecx, dword [eax + ecx*4 + 0x10]
test ecx, ecx
je 0x410000
mov edx, dword [esp + 0x3c]
add edx, ecx
lea ecx, [edx + edx*4]
mov edi, dword [eax + ecx*4]
mov ebx, dword [esp + 0x14]
jmp 0x410090
test byte [esp + 0x24], 1
je 0x410336
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x4c]
mov edx, 0xd
push eax
push dword [esp + 0xc]
push 0
call fcn.004185a0
add esp, 0xc
mov eax, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x4c]
mov edx, 0xa
push esi
push eax
push 0
call fcn.004185a0
add esp, 0xc
add ebx, 1
mov esi, dword [esp + 0x10]
cmp byte [esi + 0xc], 0
je 0x40fe90
push dword [esi + 0x14]
call fcn.00439350
add esp, 4
push esi
call fcn.00439350
add esp, 4
jmp 0x40fe90
mov eax, dword [edi + 0x60]
mov edi, dword [edi + 0x64]
lea ecx, [esp + 0x4c]
xor esi, esi
xor edx, edx
push edi
push eax
push 0
call fcn.004185a0
add esp, 0xc
mov edx, dword [esp + 0xc8]
test edx, edx
jle 0x4103ec
mov edi, dword [esp + 0xc4]
movzx ebp, byte [esp + 0xc0]
xor ecx, ecx
jmp 0x4103a9
mov ecx, ebx
add esi, 1
cmp edx, esi
je 0x4103e7
mov ebx, ecx
mov eax, dword [edi + esi*4]
test eax, eax
je 0x4103a0
mov cl, 1
cmp eax, 1
je 0x4103a2
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x1064]
mov ecx, dword [edx]
push ebp
push dword [esp + 0x54]
push dword [esp + 0x6c]
push dword [esp + 0x68]
push dword [esp + 0x64]
push eax
push edx
call dword [ecx + 0x2c]
mov edx, dword [esp + 0xe4]
add esp, 0x1c
jmp 0x4103a0
test cl, 1
jne 0x410412
push dword [esp + 0x54]
call fcn.00439350
add esp, 4
push dword [esp + 0x5c]
call fcn.00439350
add esp, 4
push dword [esp + 0x64]
call fcn.00439350
add esp, 4
jmp 0x410468
mov esi, dword [esp + 0x14]
push dword [esi + 0x1110]
call fcn.00439350
add esp, 4
push dword [esi + 0x1114]
call fcn.00439350
add esp, 4
push dword [esi + 0x1118]
call fcn.00439350
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esi + 0x1110], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x1114], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x1118], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x111c], eax
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0049e340
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret