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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d2b4
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x788], eax
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x7a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], esi
je 0x46b405
cmp eax, 4
je 0x46b405
mov dword [ecx], 0
jmp 0x46b9c5
lea ecx, [esi + 0x5c]
push ecx
mov ecx, edi
call fcn.004ba640
add esi, 0x74
push esi
mov ecx, edi
mov dword [esp + 0x88], eax
call fcn.004ba640
cmp dword [edi + 0x894], 0
mov dword [esp + 0x7c], eax
jne 0x46b5fc
mov edx, dword [edi + 0x89c]
mov eax, dword [edx + 4]
lea esi, [edi + 0x898]
push eax
mov ecx, esi
call fcn.0046a320
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
call fcn.00406b70
add eax, 4
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004016a0
add eax, 0x10
mov dword [esp + 0x2c], eax
push 0xa1c
mov dword [esp + 0x7b0], 0
call fcn.0050fcfd
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x7a8], 1
je 0x46b4ad
mov ecx, eax
call fcn.004cbe80
jmp 0x46b4af
xor eax, eax
push str.XMLRecordFile.xml
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x7b4], 0
mov dword [edi + 0x894], eax
call fcn.00402100
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x7a8], 2
or ecx, eax
jge 0x46b4fe
push 0
lea ecx, [esp + 0x18]
call fcn.00401650
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x894]
push edx
call fcn.004cc620
cmp eax, 0xffffff9a
jne 0x46b595
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ecx, dword [edi + 0x894]
test ecx, ecx
je 0x46b52f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [edi + 0x894], 0
mov byte [esp + 0x7a8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x7a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b9c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46b9c5
mov ecx, dword [edi + 0x894]
add ecx, 0xa0c
push ecx
mov ecx, esi
call fcn.0046b270
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7a8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b5d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x7a8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b5fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x89c]
mov esi, dword [ecx]
lea eax, [edi + 0x898]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
test eax, eax
mov edx, dword [edi + 0x89c]
lea ecx, [edi + 0x898]
mov dword [esp + 0x2c], edx
je 0x46b62a
cmp eax, ecx
je 0x46b633
call fcn.0053123f
mov eax, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
je 0x46b9a9
test eax, eax
jne 0x46b64a
call fcn.0053123f
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax + 4]
jne 0x46b654
call fcn.0053123f
add esi, 0x10
mov ecx, 0x1c1
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x654]
mov edx, dword [esp + 0x658]
mov eax, dword [esp + 0x650]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x64c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x660]
mov dword [esp + 0x68], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x65c]
lea edx, [esp + 0x5c]
mov dword [esp + 0x70], ecx
push edx
mov ecx, esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], eax
call fcn.004ba640
mov ecx, dword [esp + 0x668]
mov edx, dword [esp + 0x66c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x664]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x670]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x674]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x678]
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x54], edx
call fcn.004ba640
xor ecx, ecx
xor edx, edx
cmp edx, ecx
jg 0x46b737
jl 0x46b71c
cmp dword [esp + 0x84], eax
ja 0x46b737
xor ecx, ecx
xor eax, eax
cmp ecx, eax
jl 0x46b737
jg 0x46b730
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x7c], ecx
jb 0x46b737
mov byte [esp + 0x13], 1
jmp 0x46b73b
mov byte [esp + 0x13], dl
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x18], 2
mov ecx, dword [esp + 0x680]
jl 0x46b762
mov eax, 1
shl eax, cl
cdq
and eax, dword [esi + 8]
and edx, dword [esi + 0xc]
or eax, edx
je 0x46b76f
mov al, 1
jmp 0x46b771
mov eax, ecx
cdq
cmp eax, dword [esi + 8]
jne 0x46b76f
cmp edx, dword [esi + 0xc]
je 0x46b75e
xor al, al
cmp byte [esp + 0x13], 0
je 0x46b98f
mov edx, dword [esp + 0x8c]
cmp edx, dword [esi]
jne 0x46b98f
test al, al
je 0x46b98f
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
cmp eax, 0x40
jge 0x46b98f
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x74], edi
mov eax, dword [esi]
mov edx, dword [esp + 0x650]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x78], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x654]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x7c], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x658]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x84], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x65c]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x88], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x660]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x8c], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x664]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x94], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x668]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x98], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x66c]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0x9c], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x670]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0xa4], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x674]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0xa8], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x678]
imul eax, eax, 0xbc
mov dword [eax + ebx + 0xac], edx
mov eax, dword [esi]
imul eax, eax, 0xbc
lea edi, [esp + 0x688]
lea eax, [eax + ebx + 8]
jmp 0x46b8b0
mov dl, byte [edi]
mov byte [eax], dl
add edi, 1
add eax, 1
test dl, dl
jne 0x46b8b0
mov edx, dword [esi]
imul edx, edx, 0xbc
mov dword [edx + ebx], ecx
mov eax, dword [esi]
mov edx, dword [esp + 0x684]
imul eax, eax, 0xbc
mov dword [eax + ebx + 4], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46b98c
mov edx, dword [esp + 0x64c]
imul ecx, ecx, 0x2d4
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x650]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x654]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x658]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x65c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x660]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x664]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x668]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x66c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x670]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x674]
lea eax, [ecx + eax + 4]
push eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x67c]
push 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edx
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x68]
push edx
call fcn.00469e80
add dword [esi], 1
lea ecx, [esp + 0x1c]
call fcn.00469f50
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
jmp 0x46b612
mov ecx, dword [edi + 0x894]
test ecx, ecx
je 0x46b9c5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x894], 0
mov ecx, dword [esp + 0x7a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x788]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x10