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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x15b]
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x90], edi
jne 0x407e0e
lea ecx, [esi + 0x11c]
lea edx, [esi + 0x120]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x407e1d
mov eax, dword [esi + 0x128]
mov dword [ebp - 0x28], eax
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
call dword [edi + 4]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
add eax, 5
cmp eax, 0x12
mov dword [edx], ecx
ja case.default.0x407e4c
jmp dword [eax*4 + 0x408841]
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
mov ebx, dword [esi + 0x167]
test ebx, ebx
je 0x407e86
mov eax, dword [ebx]
mov dword [esi + 0x167], eax
jmp 0x407eb1
push 0x30
call dword [esi + 0xc]
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4087a7
push 0x20
call dword [esi + 0xc]
add esp, 4
mov dword [ebx + 0x24], eax
test eax, eax
je 0x4087b1
add eax, 0x20
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
mov eax, dword [esi + 0x163]
mov dword [ebx], eax
mov dword [esi + 0x163], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [edi + 0x44]
add eax, dword [ebp + 0x14]
push eax
mov dword [ebx + 4], eax
push edi
call dword [edi + 0x20]
add esp, 8
mov dword [ebx + 8], eax
inc dword [esi + 0x131]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 0x28]
lea ecx, [ebp - 0x14]
dec eax
push eax
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [edi + 0x3c]
add esp, 0x14
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
sub eax, ecx
cmp dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
je 0x407f59
mov eax, dword [ebx + 0x28]
sub eax, ecx
add eax, eax
push eax
mov dword [ebp - 4], eax
push ecx
call dword [esi + 0x10]
add esp, 8
test eax, eax
je 0x4087bf
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x24], eax
add ecx, eax
add eax, dword [ebp - 0x1c]
mov dword [ebx + 0x28], ecx
mov dword [ebp - 0x14], eax
jmp 0x407f02
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x2c]
mov ecx, dword [ebx + 0x24]
push eax
lea eax, [ebx + 0xc]
mov dword [ebx + 0xc], ecx
mov edx, dword [ebp - 0x14]
push eax
mov byte [edx], 0
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040888d
add esp, 0x14
test eax, eax
jne 0x40883a
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x407fa2
push dword [esi + 0x17f]
push dword [ebx + 0xc]
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x407fb8
cmp dword [esi + 0x50], 0
je 0x407fb8
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
lea eax, [esi + 0x194]
push eax
call fcn.0040d044
add esp, 4
jmp 0x4085d6
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x44]
add ebx, dword [ebp + 0x14]
push ebx
push edi
call dword [edi + 0x20]
add esp, 8
add eax, ebx
push eax
push ebx
push edi
lea eax, [esi + 0x194]
push eax
call fcn.0040d1a3
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4087c6
mov eax, dword [esi + 0x1a0]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov dword [esi + 0x1a4], eax
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040888d
add esp, 0x14
test eax, eax
jne 0x40883a
mov eax, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x1a4], eax
test ecx, ecx
je 0x408055
push dword [esi + 0x17f]
push dword [ebp - 0x4c]
push dword [esi + 4]
call ecx
mov byte [ebp - 4], 0
add esp, 0xc
cmp dword [esi + 0x38], 0
je 0x40807b
cmp dword [esi + 0x34], 0
je 0x40806b
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx]
mov dword [ecx], eax
push dword [ebp - 0x4c]
push dword [esi + 4]
call dword [esi + 0x38]
mov byte [ebp - 4], 0
add esp, 8
cmp byte [ebp - 4], 0
je 0x408097
cmp dword [esi + 0x50], 0
je 0x408097
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
lea eax, [esi + 0x194]
push eax
call fcn.0040d044
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x4080e8
mov ebx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x4080c2
mov eax, dword [ebx]
push dword [eax]
push dword [esi + 4]
call ecx
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x16f]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebx + 4], edx
mov dword [esi + 0x16f], ebx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x10], 0
jne 0x4080ac
cmp dword [esi + 0x131], 0
jne 0x4085d6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push esi
call fcn.0040b311
add esp, 0x10
jmp 0x40883a
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x131], eax
je 0x4087cd
mov ebx, dword [esi + 0x163]
mov ecx, dword [esi + 0x167]
mov eax, dword [ebx]
mov dword [esi + 0x163], eax
mov dword [ebx], ecx
mov dword [esi + 0x167], ebx
mov eax, dword [edi + 0x44]
add eax, eax
add eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 4], eax
push edi
call dword [edi + 0x20]
add esp, 8
cmp dword [ebx + 8], eax
jne 0x4087d4
push eax
push dword [ebp - 4]
push dword [ebx + 4]
call sub.MSVCRT20.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4087d4
dec dword [esi + 0x131]
cmp dword [esi + 0x38], 0
je 0x4081d6
cmp byte [esi + 0xea], 0
mov edx, dword [ebx + 0x10]
je 0x4081c8
test edx, edx
je 0x4081c8
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebx + 0x1c]
cmp byte [edx], 0
je 0x40819c
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
cmp byte [edx], 0
jne 0x408191
cmp byte [esi + 0xeb], 0
mov edx, dword [ebx + 0x14]
je 0x4081c5
test edx, edx
je 0x4081c5
mov al, byte [esi + 0x1cc]
mov byte [ecx], al
inc ecx
cmp byte [edx], 0
je 0x4081c5
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
cmp byte [edx], 0
jne 0x4081ba
mov byte [ecx], 0
push dword [ebx + 0xc]
push dword [esi + 4]
call dword [esi + 0x38]
add esp, 8
jmp 0x4081ec
cmp dword [esi + 0x50], 0
je 0x4081ec
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
cmp dword [ebx + 0x2c], 0
je 0x408234
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esi + 0x68]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x40820b
mov eax, dword [edx]
push dword [eax]
push dword [esi + 4]
call ecx
add esp, 8
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebx + 0x2c], ecx
mov eax, dword [esi + 0x16f]
mov dword [edx + 4], eax
mov dword [esi + 0x16f], edx
mov ecx, dword [edx + 8]
mov eax, dword [edx]
mov dword [eax + 4], ecx
cmp dword [ebx + 0x2c], 0
jne 0x4081f2
cmp dword [esi + 0x131], 0
jne 0x4085d6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push esi
call fcn.0040b311
add esp, 0x10
jmp 0x40883a
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4082c8
cmp byte [edi + 0x48], 0
je 0x40827c
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x4085d6
mov eax, dword [esi + 0x2c]
lea ecx, [ebp + 0x14]
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push ecx
push edi
call dword [edi + 0x3c]
mov edx, dword [ebp - 0x2c]
add esp, 0x14
mov ecx, dword [ebp + 0x14]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
cmp dword [ebp + 0x14], ecx
je 0x4085d6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x40827c
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x408305
push 1
lea eax, [ebp - 6]
mov byte [ebp - 6], 0xa
push eax
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
mov eax, dword [esi + 0x48]
test eax, eax
je 0x408335
push dword [esi + 4]
call eax
add esp, 4
jmp 0x40834b
cmp dword [esi + 0x50], 0
je 0x40834b
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea edx, [ebp - 0xc]
push edx
push edi
push esi
call fcn.00409345
add esp, 0x18
test eax, eax
jne 0x40883a
cmp dword [ebp - 0xc], 0
jne 0x4085d6
mov dword [esi + 0x114], 0x4092ce
jmp 0x40883a
mov ecx, dword [edi + 0x44]
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push edi
call dword [edi + 0x30]
add esp, 0xc
mov byte [ebp - 5], al
test al, al
je 0x4083d9
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4083ba
push 1
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
mov ecx, dword [edi + 0x44]
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push edi
mov eax, dword [ebp - 0x30]
add eax, 0x44
push eax
call fcn.0040d1a3
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x4087e3
push 0
push eax
push dword [ebp - 0x30]
call fcn.0040cd3e
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ebx, eax
mov ecx, dword [edx + 0x54]
mov dword [edx + 0x50], ecx
cmp byte [edx + 0x75], 0
je 0x408464
cmp byte [edx + 0x76], 0
jne 0x408464
test ebx, ebx
jne 0x408476
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x408445
push 0
push dword [ebp - 4]
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
test ebx, ebx
je 0x4087ea
cmp byte [ebx + 0x22], 0
je 0x4087f1
cmp byte [ebx + 0x20], 0
jne 0x4087f8
cmp dword [ebx + 0x1c], 0
jne 0x4087ff
cmp dword [ebx + 4], 0
je 0x4084e9
cmp byte [esi + 0x130], 0
jne 0x4084d0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4084b1
push 0
push dword [ebx]
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
push 0
push ebx
push esi
call fcn.0040b4cb
add esp, 0xc
test eax, eax
je 0x4085d6
jmp 0x40883a
cmp dword [esi + 0x70], 0
je 0x408534
mov byte [ebx + 0x20], 1
push esi
call fcn.0040c527
mov byte [ebx + 0x20], 0
add esp, 4
test eax, eax
je 0x408806
push dword [ebx + 0x18]
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push eax
push dword [esi + 0x74]
call dword [esi + 0x70]
add esp, 0x14
test eax, eax
je 0x40880d
mov eax, dword [esi + 0x1a4]
mov dword [esi + 0x1a0], eax
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
push dword [ebp + 0x14]
push edi
call dword [edi + 0x2c]
add esp, 8
test eax, eax
jl 0x408814
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x408588
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.004183ce
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push ecx
push dword [esi + 4]
call ebx
add esp, 0xc
jmp 0x4085d6
cmp dword [esi + 0x50], 0
je 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
jmp 0x4085d6
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040bf9b
add esp, 0x10
test eax, eax
jne 0x4085d6
mov eax, 1
jmp 0x40883a
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c06d
add esp, 0x10
test eax, eax
je 0x408822
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [ebp + 0x14], eax
mov dword [ecx], eax
mov eax, dword [esi + 0x1d1]
cmp eax, 2
je 0x408829
cmp eax, 3
je 0x408830
jmp 0x407e25
cmp byte [ebp + 0x20], 0
je 0x40860c
mov eax, dword [ebp + 0x14]
jmp 0x408833
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40865d
cmp byte [edi + 0x48], 0
jne 0x408649
mov eax, dword [esi + 0x2c]
lea ecx, [ebp + 0x14]
push dword [esi + 0x30]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
push ecx
push edi
call dword [edi + 0x3c]
add esp, 0x14
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 4]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0xc
jmp 0x408673
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x408673
cmp dword [esi + 0x50], 0
je 0x408673
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x40868b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, 3
jmp 0x40883a
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x131], eax
je 0x4086a8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, 0xd
jmp 0x40883a
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
jmp 0x408836
cmp byte [ebp + 0x20], 0
je 0x4086c1
mov eax, dword [ebp + 0x14]
jmp 0x408833
cmp dword [ebp + 0xc], 0
jle 0x4086e4
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x131], eax
je 0x4086dc
mov eax, 0xd
jmp 0x40883a
mov eax, dword [ebp + 0x14]
jmp 0x408833
mov eax, 3
jmp 0x40883a
cmp byte [ebp + 0x20], 0
je 0x4086fc
mov eax, dword [ebp + 0x14]
jmp 0x408833
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x18]
mov dword [edx], eax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40871f
push 1
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xa
push eax
push dword [esi + 4]
call ecx
add esp, 0xc
jmp 0x408735
cmp dword [esi + 0x50], 0
je 0x408735
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call fcn.0040c0f2
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x408745
mov eax, 3
jmp 0x40883a
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x131], eax
je 0x40875a
mov eax, 0xd
jmp 0x40883a
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
jmp 0x408836
cmp byte [ebp + 0x20], 0
je 0x408773
mov eax, dword [ebp + 0x14]
jmp 0x408833
mov eax, 6
jmp 0x40883a
cmp byte [ebp + 0x20], 0
je 0x40878b
mov eax, dword [ebp + 0x14]
jmp 0x408833
mov eax, 5
jmp 0x40883a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, 4
jmp 0x40883a
mov eax, 1
jmp 0x40883a
push ebx
call dword [esi + 0x14]
add esp, 4
mov eax, 1
jmp 0x40883a
mov eax, 1
jmp 0x40883a
mov eax, 1
jmp 0x40883a
mov eax, 0xd
jmp 0x40883a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, 7
jmp 0x40883a
mov eax, 1
jmp 0x40883a
mov eax, 0xb
jmp 0x40883a
mov eax, 0x18
jmp 0x40883a
mov eax, 0xc
jmp 0x40883a
mov eax, 0xf
jmp 0x40883a
mov eax, 1
jmp 0x40883a
mov eax, 0x15
jmp 0x40883a
mov eax, 0xe
jmp 0x40883a
mov eax, 0x11
jmp 0x40883a
mov eax, 1
jmp 0x40883a
mov eax, 0x23
jmp 0x40883a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret