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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8197
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x410e57
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x410e79
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
test eax, eax
je 0x410e79
cmp dword [eax + 0x38], 0x10
jb 0x410e74
mov eax, dword [eax + 0x24]
jmp 0x410e7b
add eax, 0x24
jmp 0x410e7b
xor eax, eax
push 0xfde9
lea ecx, [esp + 0x78]
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x78], ecx
call fcn.0040cbf0
lea edx, [esp + 0x14]
mov dword [esp + 0x180], 0
mov ecx, dword [esp + 0x70]
push edx
call fcn.0040b6b0
add edi, 0x70
mov byte [esp + 0x180], 1
call fcn.0040c900
mov byte [esp + 0x180], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x74]
cmp eax, ecx
je 0x410f03
push eax
call fcn.00489176
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4112ad
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
xor esi, esi
cmp ecx, esi
jl 0x4112ad
cmp ecx, edx
jg 0x4112ad
lea eax, [eax + ecx*2]
push 0x4b6a3c
push eax
call fcn.004882f5
add esp, 8
cmp eax, esi
je 0x4112ad
sub eax, dword [edi]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4112ad
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
lea eax, [ebx + 4]
cmp eax, esi
jl 0x4112ad
cmp eax, edx
jge 0x4112ad
lea ecx, [ecx + eax*2]
push 0x25
push ecx
call int.00489cfb
add esp, 8
cmp eax, esi
je 0x4112ad
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4112ad
sub eax, ebx
sub eax, 1
lea ecx, [ebx + 1]
push edi
lea edx, [esp + 0x18]
call fcn.0040b820
mov dword [esp + 0x180], 2
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
mov esi, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x50], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410fd1
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x40]
call fcn.0043d0d0
mov edx, esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x180], 3
call fcn.00483353
mov dword [esp + 0x1c], eax
mov byte [esp + 0x180], 4
test byte [0x4dbfcc], 1
jne 0x41103c
or dword [0x4dbfcc], 1
mov byte [esp + 0x180], 5
call fcn.0047bda2
push 0x4ac449
call fcn.0048858f
add esp, 4
mov byte [esp + 0x180], 4
xor esi, esi
test byte [0x4dbf00], 1
jne 0x411072
or dword [0x4dbf00], 1
xor eax, eax
push 0x4ac44e
mov dword [0x4dbef8], 7
mov dword [0x4dbef4], eax
mov word [0x4dbee4], ax
call fcn.0048858f
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov eax, 0x4dbf08
call fcn.0047c336
test al, al
je 0x411099
cmp dword [0x4dbef8], 8
mov esi, dword [0x4dbee4]
jae 0x411099
mov esi, 0x4dbee4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040b6b0
cmp dword [esp + 0x6c], 0x10
jb 0x4110b9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00487c06
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x180], 8
cmp dword [esp + 0x50], 8
jb 0x4110ea
mov edx, dword [esp + 0x3c]
push edx
call fcn.00487c06
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 1
lea esi, [esp + 0x30]
mov edx, edi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
call fcn.00438f90
mov esi, eax
mov eax, ebx
lea ecx, [esp + 0x34]
mov edx, edi
mov byte [esp + 0x180], 9
call fcn.0040b8d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, eax
mov byte [esp + 0x188], 0xa
call fcn.00439020
lea ecx, [esp + 0x34]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0x190], 0xb
call fcn.00439020
add esp, 0x10
mov byte [esp + 0x180], 0xc
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4111b1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4111a6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4111a6
call fcn.0040d0b0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41119b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4111b1
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.0040cfc0
mov byte [esp + 0x180], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 9
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411251
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x180], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410f18
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
mov dword [esi + 0x24], 0
call fcn.00404570
mov edx, dword [0x4da734]
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
add edi, 0x44
mov dword [esp + 0x180], 0xd
push 0x4b6a48
mov dword [esp + 0x1c], edi
call fcn.00481582
test eax, eax
je 0x411353
cmp dword [eax + 0x48], 0x10
jb 0x41134e
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x411355
push ebx
call fcn.00489b56
mov dword [esp + 0x18], eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411320
sub eax, edx
mov edi, eax
push ebx
lea eax, [esp + 0x14]
call fcn.0040d120
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x411361
cmp dword [esp + 0x14], 0
je 0x41135d
and dword [esi + 0x7c], 0xfffffff7
jmp 0x411361
lea ebx, [eax + 0x34]
jmp 0x411303
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x41132b
or dword [esi + 0x7c], 8
mov eax, dword [esi + 0x9c]
cmp eax, 2
je 0x411526
cmp eax, 4
je 0x411526
mov edi, dword [esp + 0x18]
push 0x4b3150
call fcn.00481582
test eax, eax
je 0x4113aa
cmp dword [eax + 0x48], 0x10
jb 0x4113a5
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x4113ac
push ebx
call fcn.00489b56
add esp, 4
mov edi, eax
jmp 0x4113ae
lea ebx, [eax + 0x34]
jmp 0x411394
xor ebx, ebx
xor edi, edi
mov edx, ebx
lea ebx, [esp + 0x10]
call fcn.0040b620
test edi, edi
jne 0x4113df
mov ecx, ebx
push ecx
mov ecx, 0x4b6a50
call fcn.0040b660
add esp, 4
test al, al
je 0x4113f5
mov edx, dword [esi + 0x24]
and edx, 0xfffffffc
or edx, 4
mov dword [esi + 0x24], edx
jmp 0x411401
jle 0x4113f5
mov eax, dword [esi + 0x24]
and eax, 0xfffffff9
or eax, 1
mov dword [esi + 0x1c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x24], eax
jmp 0x411408
mov ecx, dword [esi + 0x24]
and ecx, 0xfffffffa
or ecx, 2
mov dword [esi + 0x24], ecx
mov dword [esi + 0x1c], 0
mov edi, dword [esp + 0x18]
push 0x4b3158
call fcn.00481582
test eax, eax
je 0x411439
cmp dword [eax + 0x48], 0x10
jb 0x411434
mov ebx, dword [eax + 0x34]
test ebx, ebx
je 0x41143b
push ebx
call fcn.00489b56
add esp, 4
mov edi, eax
jmp 0x41143d
lea ebx, [eax + 0x34]
jmp 0x411423
xor ebx, ebx
xor edi, edi
mov edx, ebx
lea ebx, [esp + 0x10]
call fcn.0040b620
xor ebx, ebx
cmp edi, ebx
jne 0x411472
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4b6a50
call fcn.0040b660
add esp, 4
test al, al
je 0x411488
mov eax, dword [esi + 0x24]
and eax, 0xffffffcf
or eax, 0x40
mov dword [esi + 0x24], eax
jmp 0x411494
jle 0x411488
mov ecx, dword [esi + 0x24]
and ecx, 0xffffff9f
or ecx, 0x10
mov dword [esi + 0x20], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x24], ecx
jmp 0x411497
mov edx, dword [esi + 0x24]
and edx, 0xffffffaf
or edx, 0x20
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], ebx
test byte [esi + 0x24], 0x22
je 0x4114d0
lea eax, [esp + 0x20]
push eax
push ebx
push 0x83
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00408180
mov eax, dword [esi + 0x24]
test al, 2
je 0x4114c5
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], ecx
test al, 0x20
je 0x4114d0
mov edx, dword [esp + 0x24]
mov dword [esi + 0x20], edx
mov edi, dword [esp + 0x18]
push 0x4b6a58
call fcn.00481582
cmp eax, ebx
je 0x4114ff
cmp dword [eax + 0x48], 0x10
jb 0x4114ed
mov eax, dword [eax + 0x34]
jmp 0x4114f0
add eax, 0x34
cmp eax, ebx
je 0x4114ff
push eax
call fcn.00489b56
add esp, 4
jmp 0x411501
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x100
or dword [esi + 0x24], eax
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x411534
mov dword [esp + 0x180], 0xffffffff
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41154d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4