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

Disassembly:
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
adc byte [ecx - 0x74e3db84], cl
push ss
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.0040adf0
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4504b6
mov eax, dword [edi + 0x150]
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
inc ecx
xor eax, eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], 0x49cc38
mov dword [esp + 0x48], 0x49cc3c
mov dword [esi], ecx
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x47
jne 0x4504ce
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push eax
push esi
push ebx
mov ecx, edi
call fcn.0040ac91
test eax, eax
js 0x450a2d
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4d23a0]
jg 0x4504e0
test eax, eax
jle 0x4504e0
shl eax, 4
add eax, dword [0x4d23dc]
mov esi, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
cmp word [eax + 8], 0
jne 0x40c07e
cmp dword [eax], 0x2b
je 0x4504e7
mov eax, 3
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
jg 0x40c670
mov bl, byte [ebp + 8]
test bl, bl
jne 0x4505a9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp eax, dword [edi + 0x18]
jl 0x450a14
cmp eax, dword [edi + 0x14]
jg 0x450a14
cmp ecx, edx
jne 0x450a14
mov eax, dword [edi + 0x10]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
test eax, eax
js 0x4506ff
lea eax, [esp + 0x48]
mov ecx, 0x4d2380
push eax
call fcn.0040ad81
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x45070c
cmp dword [edi + 0x14], 1
jge 0x40c3c3
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [ebx + 0x150], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], eax
mov byte [esp + 0xa0], al
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], eax
mov byte [esp + 0xb8], al
mov eax, dword [ebx]
mov dword [esp + 0x94], 1
mov byte [esp + 0x98], 0
mov dword [esp + 0xb4], 1
mov edi, dword [eax + 4]
add edi, ebx
cmp byte [edi + 0xd], 0
jne 0x45091a
push 0x40
call fcn.0041fddb
mov esi, eax
add esp, 4
lea eax, [esp + 0x88]
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.004100e0
lea eax, [esp + 0xa8]
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
push eax
mov dword [ecx + 8], 0
call fcn.004100e0
mov byte [esi + 0x30], 0
mov eax, dword [edi + 8]
mov dword [esi + 0x38], eax
mov dword [edi + 8], esi
mov eax, dword [esp + 0x5c]
lea esi, [ebx + 0x164]
inc dword [edi + 4]
mov edi, dword [ebx + 0xf8]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ebx, dword [esi]
inc eax
push eax
call fcn.0040d760
cmp ebx, dword [esi]
jb 0x450933
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov dword [ebx + 0xf8], edi
mov eax, dword [eax + 4]
mov cl, byte [eax + ebx + 0xd]
mov edi, dword [eax + ebx + 8]
test cl, cl
jne 0x450943
mov eax, edi
cmp byte [eax + 0x10], 0
mov eax, dword [ebp + 0x18]
je 0x40c93d
mov byte [eax], 1
test cl, cl
jne 0x45094b
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x40c262
cmp dword [esi + 0xc], 4
je 0x450953
mov ecx, esi
call fcn.0040cfa0
push edi
mov ecx, esi
call fcn.004100e0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov cl, byte [eax + ebx + 0xd]
mov eax, dword [eax + ebx + 8]
test cl, cl
jne 0x450976
mov esi, eax
cmp byte [esi + 0x18], 0
jne 0x45097e
test cl, cl
jne 0x4509a0
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x4509a8
mov eax, dword [edx + 4]
cmp byte [eax + ebx + 0xd], 0
lea esi, [eax + ebx]
jne 0x4509d1
cmp byte [esi + 0xc], 0
jne 0x4509ed
mov edi, dword [esi + 8]
mov ebx, dword [edi + 0x38]
test edi, edi
je 0x40c2d6
lea ecx, [edi + 0x20]
call fcn.0040cfa0
mov ecx, edi
call fcn.0040cfa0
push 0x40
push edi
call fcn.0041fdcd
add esp, 8
mov dword [esi + 8], ebx
xor al, al
mov ebx, dword [esp + 0xc]
mov byte [esi + 0xd], al
dec dword [esi + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
jne 0x4509f4
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x14], edx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
jne 0x4509fc
mov byte [ecx + 0x18], 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
cmp byte [esi + 0xd], 0
mov ecx, dword [esi + 8]
jne 0x450a04
lea eax, [esp + 0xa8]
add ecx, 0x20
push eax
call fcn.0040aceb
cmp byte [esi + 0xd], 0
mov eax, dword [esi + 8]
jne 0x450a0c
mov ecx, 0x4d2380
mov byte [eax + 0x30], 0
call fcn.0040a704
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0xa8]
mov dword [ebx + 0x150], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.0040cfa0
lea ecx, [esp + 0x88]
call fcn.0040cfa0
lea ecx, [esp + 0x70]
call fcn.0040cfa0
mov edi, dword [esp + 0x38]
xor esi, esi
test edi, edi
jne 0x40c876
push dword [esp + 0x24]
call fcn.0041fe14
mov eax, dword [esp + 0x34]
add esp, 4
xor edi, edi
test eax, eax
jne 0x40c8a2
push dword [esp + 0x20]
call fcn.0041fe14
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov esi, dword [esp + 0x2c]
lea edx, [esi*4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx]
cmp word [eax + 8], bx
je 0x450758
mov edx, dword [esp + 0x2c]
xor esi, esi
inc edx
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
lea edx, [ecx + edx*4]
jmp 0x40c420
mov eax, dword [edx]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x450787
cmp ax, 0x48
je 0x40c92b
cmp ax, 0x40
jne 0x40c934
test esi, esi
jne 0x40c934
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x40]
jg 0x4508a5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
mov eax, dword [eax + edx]
cmp byte [eax], 0
jne 0x45078d
mov eax, dword [esp + 0x2c]
or ebx, 0x200
cmp dword [0x4d2380], 0
mov edx, dword [edx]
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
je 0x4507c4
xor al, al
test al, al
jne 0x4507cb
cmp byte [0x4d2389], al
jne 0x4507e1
mov esi, dword [0x4d2384]
push esi
push edi
mov dword [esp + 0x60], esi
call fcn.0040bbe0
test al, al
jne 0x4507ee
and ebx, 0xff00
push 0x20
mov dword [esp + 0x2c], ebx
call fcn.0041fddb
mov ebx, eax
add esp, 4
push 0x10
mov dword [ebx + 4], 0
mov dword [ebx + 8], 8
call fcn.0041fe0b
add esp, 4
mov dword [ebx], eax
xor ecx, ecx
mov word [eax], cx
push 4
call fcn.0041fddb
mov ecx, eax
add esp, 4
mov dword [ecx], 1
mov dword [ebx + 0xc], ecx
cmp ebx, edi
je 0x40c559
mov edx, dword [ecx]
cmp edx, 1
jg 0x45080d
xor al, al
test al, al
jne 0x450814
mov esi, dword [edi + 4]
mov dword [ebx + 4], esi
lea ecx, [esi + 1]
cmp dword [ebx + 8], ecx
jb 0x450836
mov al, 1
test al, al
je 0x45083d
lea eax, [esi*2 + 2]
push eax
push dword [edi]
push dword [ebx]
call fcn.00420e20
add esp, 0xc
mov eax, dword [esp + 0x28]
push 0x10
mov dword [ebx + 0x10], eax
call fcn.0041fddb
add esp, 4
mov esi, eax
mov ecx, esi
push dword [esp + 0x3c]
mov dword [esi + 8], 0
call fcn.004100e0
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40c639
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040bbe0
mov ecx, dword [esp + 0x28]
mov edi, dword [ebx + 4]
mov edx, dword [ecx + 4]
test edi, edi
je 0x450887
test edx, edx
je 0x45088f
cmp edi, edx
jb 0x40c95c
mov edx, dword [ecx]
mov esi, dword [ebx]
test edi, edi
je 0x40c987
lea ebx, [ebx]
movzx eax, word [esi]
mov dword [esp + 0x48], eax
movzx eax, word [edx]
mov ecx, eax
mov dword [esp + 0x3c], ecx
movzx ecx, word [esi]
cmp cx, ax
jne 0x40c608
add esi, 2
add edx, 2
sub edi, 1
jne 0x40c5e0
jmp 0x40c987
mov eax, dword [esp + 0x3c]
cmp word [esp + 0x48], ax
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x40c9ce
jle 0x45089c
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], ecx
mov dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
mov dword [eax], ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
inc eax
add dword [esp + 0x18], 4
add eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [ecx + 0x14]
jle 0x40c3e0
jmp 0x40c10d
cmp ecx, edx
jae 0x40c0a0
mov eax, dword [esi + edi*4]
lea edx, [edi*4]
inc ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x40], ebx
xor bl, bl
cmp word [eax + 8], 0
je 0x4504f5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x33
je 0x40c6ae
xor bl, bl
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x38], eax
je 0x40c7da
push 1
call fcn.0041fddb
mov ecx, dword [esp + 0x3c]
add esp, 4
mov edx, dword [esp + 0x24]
mov byte [eax], bl
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x70]
call fcn.0040cfa0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], 0
cmp dword [esp + 0x30], eax
je 0x40c828
push 0x10
call fcn.0041fddb
mov esi, eax
add esp, 4
lea eax, [esp + 0x70]
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.004100e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x20]
mov dword [edx + ecx*4], esi
inc ecx
test bl, bl
mov dword [esp + 0x34], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x6c], ecx
jne 0x450543
push dword [edx + ecx*4 - 4]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.0040ec40
test eax, eax
js 0x450a2d
mov ecx, dword [esp + 0x34]
inc edi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi*4]
cmp word [eax + 8], 0x41
je 0x40c99c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp ecx, edx
je 0x40c0a0
mov esi, dword [ebx + 4]
mov eax, dword [esi + ecx*4]
cmp word [eax + 8], 0x40
jne 0x450591
lea eax, [ecx + 1]
cmp eax, edx
je 0x450591
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov esi, dword [eax + 4]
mov eax, dword [esi + edi*4]
cmp word [eax + 8], 0x40
jne 0x40c7bb
inc edi
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [ebx + 0x14]
jge 0x40c0a0
mov ebx, dword [esp + 0x40]
invalid