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

Disassembly:
push 0xdc
mov eax, 0x5604fb
call fcn.0054f84f
mov esi, ecx
mov eax, dword [esi + 4]
lea edi, [esi + 0x84]
sub eax, dword [esi]
push 0x30
pop ecx
cdq
idiv ecx
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
cmp dword [esi + 0x1c], 0
jne 0x46d773
mov ebx, 0x4000
mov dword [ebp - 0xdc], eax
cmp ecx, ebx
jae 0x46d752
cmp dword [esi + 0x78], eax
jge 0x46d752
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
cmp dword [esi + 0x78], eax
je 0x46d69f
push 0x58031c
call fcn.0040156c
pop ecx
push eax
push 0x58031c
lea ecx, [ebp - 0x2c]
call fcn.00401ce0
imul eax, dword [esi + 0x78], 0x30
push 0x580320
add eax, dword [esi]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00452cd1
mov byte [ebp - 4], 1
mov edx, eax
imul ecx, dword [esi + 0x78], 0x30
add ecx, 0x18
add ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00452dd3
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040ec2c
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401c56
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00401c56
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push dword [ebp - 0xd8]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
push dword [esi + 0x88]
mov ecx, edi
call fcn.0046dc0c
inc dword [esi + 0x78]
lea ecx, [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00401c56
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, ebx
mov eax, dword [ebp - 0xdc]
jb 0x46d666
mov eax, dword [esi + 4]
sub eax, dword [esi]
push 0x30
cdq
pop ebx
idiv ebx
mov ecx, dword [esi + 0x78]
cmp ecx, eax
jne 0x46db4c
lea eax, [ecx + 1]
mov dword [esi + 0x78], eax
jmp 0x46db4c
xor ebx, ebx
mov dword [ebp - 0xe0], eax
inc ebx
cmp ecx, 0x4000
jae 0x46d8b4
cmp dword [esi + 0x78], eax
jge 0x46d8b4
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x8c]
push 0x580f38
push eax
call fcn.00437660
push str._r_nContent_Disposition:_form_data__name_
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 3
push eax
call fcn.00434239
mov byte [ebp - 4], 4
mov edx, eax
imul ecx, dword [esi + 0x78], 0x30
add ecx, dword [esi]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.00452dd3
push str.__r_n_r_n
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
call fcn.00434239
mov byte [ebp - 4], 6
mov edx, eax
imul ecx, dword [esi + 0x78], 0x30
add ecx, 0x18
add ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00452dd3
push 0x57fbc0
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
call fcn.00434239
add esp, 0x38
push 0
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0x74]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0xa4]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.00401c56
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push dword [ebp - 0xd8]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
push dword [esi + 0x88]
mov ecx, edi
call fcn.0046dc0c
inc dword [esi + 0x78]
lea ecx, [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 0
push ebx
call fcn.00401c56
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, 0x4000
mov eax, dword [ebp - 0xe0]
jb 0x46d788
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
setne cl
mov dword [ebp - 0xd8], ecx
test ecx, ecx
jle 0x46dab7
add eax, ecx
cmp dword [esi + 0x78], eax
jge 0x46dab7
cmp dword [esi + 0x7c], 0xffffffff
jne 0x46d9e9
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x5c]
push 0x580f38
push eax
call fcn.00437660
push str._r_nContent_Disposition:_form_data__name_file___filename_
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0xe
push eax
call fcn.00434239
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.00452dd3
push str.__r_nContent_Type:
push eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x10
push eax
call fcn.00434239
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.00452dd3
push str._r_n_r_n
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
push eax
call fcn.00434239
add esp, 0x38
push 0
push ebx
lea ecx, [ebp - 0x8c]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0xa4]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0x74]
call fcn.00401c56
push 0
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.00401c56
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push dword [ebp - 0xd8]
add eax, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
push dword [esi + 0x88]
mov ecx, edi
call fcn.0046dc0c
mov ecx, dword [esi + 0x3c]
push 0
mov dword [esi + 0x7c], ecx
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401c56
mov al, bl
jmp 0x46db56
mov ebx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
lea eax, [ebx + ecx]
cmp dword [esi + 0x7c], eax
jge 0x46da71
cmp dword [esi + 0x80], 0
jne 0x46da07
xor al, al
jmp 0x46db56
sub ebx, dword [esi + 0x7c]
mov eax, dword [edi + 4]
add ebx, ecx
sub eax, dword [edi]
mov ecx, 0x8000
add eax, ebx
cmp eax, ecx
jbe 0x46da23
mov ebx, dword [edi]
sub ebx, dword [edi + 4]
add ebx, ecx
mov eax, dword [edi + 4]
mov ecx, edi
sub eax, dword [edi]
mov dword [ebp - 0xdc], eax
add eax, ebx
push eax
call fcn.004379ec
mov edx, dword [edi]
add edx, dword [ebp - 0xdc]
mov dword [ebp - 4], 0x19
mov ecx, dword [esi + 0x80]
push 0
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xdc]
mov ebx, eax
add ecx, ebx
mov dword [ebp - 0xe4], edx
push ecx
mov ecx, edi
call fcn.004379ec
add dword [esi + 0x7c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x3c]
cmp dword [esi + 0x7c], eax
jne 0x46dab7
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x46da97
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x80], 0
push dword [ebp - 0xd8]
mov ecx, edi
push 0x57fbc2
push 0x57fbc0
push dword [esi + 0x88]
call fcn.004665ce
inc dword [esi + 0x78]
mov eax, dword [ebp - 0xd8]
add eax, dword [ebp - 0xe0]
cmp dword [esi + 0x78], eax
jne 0x46db4c
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0xd4]
push 0x580f38
push eax
call fcn.00437660
push str.___r_n
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0x1b
push eax
call fcn.00434239
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x1d
call fcn.00401c56
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
push dword [ebp - 0xd8]
add eax, ecx
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push eax
push ecx
push dword [esi + 0x88]
mov ecx, edi
call fcn.0046dc0c
inc dword [esi + 0x78]
lea ecx, [ebp - 0x44]
push 0
push 1
call fcn.00401c56
mov ecx, dword [edi]
xor eax, eax
cmp ecx, dword [edi + 4]
setne al
call fcn.0054f7a1
ret